Debug School

DanielOu
DanielOu

Posted on

How can you share a Docker image with others and pull an image from a Docker registry?

Push/Share the image

  1. Tag the image
    docker tag local_image:tag your_registry_username/repository_name:tag

  2. Login to Docker Hub
    docker login
    Enter your Docker Hub username and password when prompted.

  3. Push the Docker Image to the Registry
    docker push your_registry_username/repository_name:tag

Pull image

  1. Login to Docker Hub
    docker login
    Enter your Docker Hub username and password when prompted.

  2. Pull the Docker Image
    docker pull your_registry_username/repository_name:tag

  3. Check the docker image

docker image ls

Top comments (0)