Complete the command to list all Docker images on your system.
docker [1]The docker images command shows all images stored locally. Images are the blueprints for containers.
Complete the command to create a container from an image named 'nginx'.
docker [1] nginxThe docker run command creates and starts a container from an image.
Fix the error in this Dockerfile line to set the base image to Ubuntu.
FROM [1]The FROM instruction sets the base image. ubuntu:latest is the correct image name.
Fill both blanks to create a dictionary comprehension that maps each container name to its status if the status is 'running'.
{container['[1]']: container['[2]'] for container in containers if container['status'] == 'running'}We use 'name' as the key and 'status' as the value to map container names to their statuses.
Fill all three blanks to create a dictionary comprehension that maps each image's tag to its size if the size is greater than 100MB.
{image['[1]']: image['[2]'] for image in images if image['[3]'] > 100}The key is the image 'tag', the value is 'size', and the condition checks if 'size' is greater than 100MB.