Question: The command docker image ls lists all usable docker images on the current machine. Suppose before running the commands below it shows 3 images: alpine,

The command docker image ls lists all usable docker images on the current machine. Suppose before running the commands below it shows 3 images: alpine, unused0, unused1.
The command docker image ls -a lists all docker images on the current machine, both usable and temporaries created while creating the usable images. We do not care about its output in this question.
The command docker container ls lists all currently running docker containers on the current machine. Suppose before running the commands below it shows 2 containers (images: alpine, unused0).
The command docker container ls -a lists all currently running and exited docker containers on the current machine. Suppose before running the commands below it shows 2 containers (images: alpine, unused0).
Assume that alpine and python are dockerhub images that are built FROM scratch that is, they install without adding any other images.
Assume that defined using the following Dockerfile:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!