Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the exact difference between SizeRootFs and SizeRw in Docker containers?

In the list of docker containers you can get the container sizes SizeRootFs and SizeRw, but I can't find what the sizes exact mean.

like image 415
Martijn van Maasakkers Avatar asked Mar 03 '14 20:03

Martijn van Maasakkers


People also ask

Can we have 2 ENTRYPOINT in Dockerfile?

According to the documentation however, there must be only one ENTRYPOINT in a Dockerfile.

What is the difference between dockers and containers?

The key difference between a Docker image vs a container is that a Docker image is a template that defines how a container will be realized. A Docker container is a runtime instance of a Docker image. The purpose of this piece is to answer the question, what is a Docker image vs.

What is the API in a Docker container?

The Docker Engine API is a RESTful API accessed by an HTTP client such as wget or curl , or the HTTP library which is part of most modern programming languages.

How do I run multiple processes in a container?

Use a process manager which can run multiple processes: You can set the container's entrypoint to a specialised program which is capable of running and managing multiple processes. One example of this is supervisord. You can use supervisord as your container entrypoint, which will then load the services that you need.


1 Answers

SizeRootFs is the total size of all the files in the container, in bytes. If you were to export the filesystem of the container as a tarball, it would be about that size.

SizeRw is the size of the files which have been created or changed, if you compare the container to its base image. Just after creation, this should be zero; as you modify (or create) files, this will increase.

like image 130
jpetazzo Avatar answered Sep 27 '22 19:09

jpetazzo