o check the size of Docker images stored on your server, you can use the docker images command. Here’s how:
- Open your terminal on the server.
- Run the following command:
docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
nginx latest abc12345 2 days ago 133MB
ubuntu 20.04 def67890 3 weeks ago 29MB
my-app v1.0 ghi90123 1 month ago 250MB
For calculate the total amount of size consumed:
docker system df
TYPE TOTAL ACTIVE SIZE RECLAIMABLE
Images 5 2 600MB 400MB
Containers 4 1 150MB 100MB
Local Volumes 3 3 300MB 0B