1. Docker Basic Workflow (Ubuntu Example)

  1. Pull Ubuntu Image from Docker Hub alt text

  2. Verify Downloaded Docker Images alt text

  3. Run Ubuntu Container in Interactive Mode alt text

  4. List All Containers (Running + Stopped) alt text

  5. Create a Named Ubuntu Container alt text

  6. Access a Running Container Using Name alt text


2. Create a Custom Docker Image

Step 1: Create a Dockerfile

FROM ubuntu:24.04
RUN echo "Hello Alamgir" > /hello.txt
CMD ["cat", "/hello.txt"]

Step 2: Build the Image

docker build .
docker build -t custom_ubuntu . # assigns a name (tag) to the image

alt text alt text alt text alt text

Step 3: Run the Custom Image

docker run custom_ubuntu

alt text