QuestionQ87

VerifiedApplication Deployment and Security

A developer created a new image for use in a Docker build and added an image tag with this command:

$ docker tag 84fe411926287 local/app:0.4  

Which command must be run next to build the Docker image using that tag?

Explanation

Docker uses the -t (or --tag) flag on docker build to assign the repository name and tag to the image produced by the build. docker run launches a container, while -p is used for port publishing rather than image tagging. The Docker build syntax normally also includes a build-context argument, such as ..

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!