How to setup local docker registry

  1. Run a Local Registry Container:

    docker run -d -p 5000:5000 --restart=always --name registry registry:2
    
  2. Tag Your Image:

    docker tag my-image:latest localhost:5000/my-image:latest
    
  3. Push the Image to the Local Registry:

    docker push localhost:5000/my-image:latest
    
  4. Pull the Image from the Local Registry:

    docker pull localhost:5000/my-image:latest
    
Updated on