How do you send a locally build image img1 to a docker registry reg.local:5000?
Experience Level: Junior
Tags: DockerDocker CLIKubernetes
Answer
Run the following commands:
docker tag img1 reg.local:5000/img1:latest
docker push reg.local:5000/img1:latest
Related Docker job interview questions
How do you run a docker image app1 in detached mode and name the container mycontainer1?
DockerDocker CLI JuniorHow do you display logs of a docker container?
DockerDocker CLI JuniorHow do you tag a docker image img1:latest using a tag v12?
DockerDocker CLI JuniorWhat is container orchestration and why should we use it?
Docker JuniorWhat is a Docker image registry?
Docker Junior