Complete the command to pull the latest version of the nginx image.
docker pull nginx:[1]The latest tag is used to pull the most recent version of an image by default.
Complete the command to tag a local image with version 1.2 before pushing.
docker tag myapp:dev myrepo/myapp:[1]Version tags like 1.2 specify the image version explicitly.
Fix the error in the command to push version 2.0 of the image to the repository.
docker push myrepo/myapp:[1]Tags should match the exact version format used when tagging the image, usually numeric like 2.0.
Fill both blanks to build an image named 'webapp' with version 3.5 from the current directory.
docker build -t [1]:[2] .
The -t option tags the image with name and version. Here, 'webapp' is the name and '3.5' is the version.
Fill all three blanks to create a dictionary comprehension that maps image names to their version tags if the version is greater than 1.0.
versions = {name: [1] for name, [2] in images.items() if [3] > 1.0}The dictionary comprehension extracts the version tag for each image. The variable tag is used to compare if it's greater than 1.0.