January 2018
Intermediate to advanced
414 pages
10h 29m
English
If we want to know which images we have pulled on our system, we can use the following command:
docker images
This will list all the images that are available, when they were created, and their size, and we can delete them anytime:
REPOSITORY TAG IMAGE ID CREATED SIZEubuntu latest 20c44cd7596f 3 days ago 123MBalpine latest 053cde6e8953 2 weeks ago 3.97MB
For example, let's delete the alpine image that was pulled when we ran our first example:
docker rmi alpine
Now, we should have an error, something that looks like this:
Error response from daemon: conflict: unable to remove repository reference "alpine" (must force) - container 2caa58b34dd4 is using its referenced image 053cde6e8953
This is because we cannot delete an image ...
Read now
Unlock full access