How do you tag a docker image img1:latest using a tag v12?
Experience Level: Junior
Tags: DockerDocker CLI
Answer
Run the following command:
docker tag img1:latest img1:v12
Related Docker job interview questions
How do you display logs of a docker container?
DockerDocker CLI JuniorHow do you send a locally build image img1 to a docker registry reg.local:5000?
DockerDocker CLIKubernetes JuniorWhat is container orchestration and why should we use it?
Docker JuniorWhat is a Docker image registry?
Docker JuniorHow do you import a Docker image to a Docker host from a zip file?
DockerDocker CLI Junior