Q: 7
A developer has created a new image to use in a Docker build and has added a tag for the image by using the command: $ docker tag 84fe411926287 local/app:0.4 Which command must be executed next to build the Docker image using the tag?
Options
Discussion
B Saw a similar question in a practice exam, and it suggested docker run after tagging the image. Official guide examples might help clear this up.
Makes sense to use D, since
docker build -t creates a new image with a tag. The other options are for running containers or use the wrong parameter. Pretty confident but open to corrections.D
Isn't it B? After tagging, don't you usually run the image with docker run?
Option B looks right to me, since you use
docker run after tagging the image. The build command already happened before, I think. Let me know if I'm missing something here.B or C. Pretty sure you use run after tagging, right?
Its B
Be respectful. No spam.