Skip to content

Images and Containers

Images

  • blueprint of container
  • stored in Docker Hub

Containers

  • running instance of image
  • isolated environment

Build Image

docker build -t <image-name> .

Docker Hub

  • public repository for docker images
  • used to pull and push images

Tag Image

docker tag <image-id> <username/image-name>

Push Image

docker push <username/image-name>