CloudOps Hub
🐳 Fundamentals & Workflow

Core Docker Concepts & First Steps

Understanding the core trifecta of containerization: Images, Containers, and Registries, accompanied by practical foundational commands.

📦

Image

An immutable, read-only template with instructions and libraries to create a Docker container.

🚀

Container

A live, isolated runnable instance of an image executed with its own virtual filesystem and namespaces.

🌐

Registry

A hosted repository (such as Harbor or Docker Hub) that stores and distributes Docker images.

bash Your First Container
# 1. Download official Nginx web server
docker pull nginx:alpine

# 2. Start a container mapped to your local computer's port 8080
docker run -d -p 8080:80 --name my-webserver nginx:alpine

# 3. Verify it is running
docker ps

# 4. View container activity logs
docker logs my-webserver

# 5. Stop and clean up
docker stop my-webserver
docker rm my-webserver