V
V
Vitalij Rudyuk2016-07-21 18:13:20
Docker
Vitalij Rudyuk, 2016-07-21 18:13:20

How to find out the weight of a docker container (running and not, so is image)?

For example with golang. I'll write the code myself, tell me which command shows the weight of the container or image (it doesn't matter in bytes or megabytes)? Or do you just need to go into the folder and count the files?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
Zakhar Orlov, 2016-07-21
@Faradey

docker imagesshows the size of the image
docker ps -sor docker ps -asprints the size of the container

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question