Complete the command to start analyzing a Docker image named 'myapp' using dive.
dive [1]The correct command to analyze the image 'myapp' with dive is dive myapp. This starts the dive tool on the specified image.
Complete the command to analyze a specific image tag 'v1.0' of 'myapp' using dive.
dive myapp:[1]To analyze a specific tag of an image, you add the tag after a colon. Here, myapp:v1.0 specifies the version to analyze.
Fix the error in the command to analyze the image 'myapp' with dive by completing the missing option to ignore cache.
dive myapp [1]The correct option to ignore cache in dive is --no-cache. Other options are invalid and cause errors.
Fill both blanks to create a command that analyzes image 'myapp' with dive and outputs a JSON report to 'report.json'.
dive [1] --json [2]
The command requires the image name first, then the --json flag followed by the output file name. Here, myapp and report.json are correct.
Fill all three blanks to write a command that analyzes image 'myapp:v2' with dive, ignores cache, and saves JSON output to 'layers.json'.
dive [1]:[2] [3] --json layers.json
The command needs the image name myapp, the tag v2, and the correct option to ignore cache --no-cache. The JSON output file is specified after.