How to display the amount of disk used by Docker container for each container

command

docker ps --size

Output example

CONTAINER ID        IMAGE                               COMMAND                  CREATED             STATUS              PORTS                                                            NAMES                            SIZE
a6c67c928bb1        docker-compose_inflionserver        "air -c .air.d/.infl…"   2 weeks ago         Up 25 hours         0.0.0.0:50051->50051/tcp                                         docker-compose_inflionserver_1   692MB (virtual 1.55GB)
afbb8b3f5759        docker-compose_broker               "air -c .air.d/.brok…"   2 weeks ago         Up 25 hours                                                                          docker-compose_broker_1          647MB (virtual 1.5GB)
a098f7b7c0ca        docker-compose_monitor              "air -c .air.d/.moni…"   2 weeks ago         Up 25 hours                                                                          docker-compose_monitor_1         647MB (virtual 1.5GB)
5e8cbcf83ab7        docker-compose_syncer               "air -c .air.d/.sync…"   2 weeks ago         Up 25 hours                                                                          docker-compose_syncer_1          647MB (virtual 1.5GB)
242a1d4df552        docker-compose_consumer             "air -c .air.d/.cons…"   2 weeks ago         Up 25 hours                                                                          docker-compose_consumer_1        492MB (virtual 1.35GB)
6400d22f6122        docker-compose_collector            "air -c .air.d/.coll…"   2 weeks ago         Up 25 hours                                                                          docker-compose_collector_1       492MB (virtual 1.35GB)
2ae65278bb7d        docker-compose_jobserver            "air -c .air.d/.jobs…"   2 weeks ago         Up 25 hours         0.0.0.0:50052->50051/tcp                                         docker-compose_jobserver_1       407MB (virtual 1.26GB)
5df246937368        nsqio/nsq                           "/nsqadmin --lookupd…"   2 weeks ago         Up 25 hours         4150-4151/tcp, 4160-4161/tcp, 4170/tcp, 0.0.0.0:4171->4171/tcp   docker-compose_nsqadmin_1        0B (virtual 65.6MB)
3f71a287725c        nsqio/nsq                           "/nsqd --lookupd-tcp…"   2 weeks ago         Up 25 hours         4160-4161/tcp, 0.0.0.0:4150-4151->4150-4151/tcp, 4170-4171/tcp   docker-compose_nsqd_1            31B (virtual 65.6MB)
84970e354c8e        nsqio/nsq                           "/nsqlookupd"            2 weeks ago         Up 25 hours         4150-4151/tcp, 4170-4171/tcp, 0.0.0.0:4160-4161->4160-4161/tcp   docker-compose_nsqlookupd_1      0B (virtual 65.6MB)
e150fb69b286        postgres:12.1                       "docker-entrypoint.s…"   2 weeks ago         Up 25 hours         0.0.0.0:5433->5432/tcp                                           docker-compose_db_1              63B (virtual 394MB)
db79c1565342        timescale/timescaledb:latest-pg11   "docker-entrypoint.s…"   2 weeks ago         Up 25 hours         0.0.0.0:5434->5432/tcp                                           docker-compose_timescale_1       63B (virtual 178MB)

Recommended Posts

How to display the amount of disk used by Docker container for each container
How to switch the display of the header menu for each transition page
[Rails] How to display the list of posts by category
[Rails] How to change the page title of the browser for each page
How to display the result of form input
[Ruby] How to find the sum of each digit
[Docker] How to see the contents of Volumes. Start a container with root privileges.
[Java] How to display the day of the week acquired by LocalDate, DateTimeformatter in Japanese
How to display the select field of time_select every 30 minutes
Wait for the container service to start with docker healthcheck
Get only the ID of the container specified by docker ps
I want to narrow down the display of docker ps
[jsoup] How to get the full amount of a document
[Docker] How to access the host from inside the container. http://host.docker.internal:
How to display 0 on the left side of the standard input value
How to display products by category on the same list screen
How to get the contents of Map using for statement Memorandum
[Rails] How to omit the display of the character string of the link_to method
I examined the concept of the process to understand how Docker works
How to check for the contents of a java fixed-length string
I want to display the number of orders for today using datetime.
The story of updating SonarQube's Docker Container
How to determine the number of parallels
[Docker] How to build when the source code is bind-mounted on the container
How to sort the List of SelectItem
How to make the schema of the URL generated by Rails URL helper https
In the topic of "total concentration", "How to use Docker" is summarized for the virtual Mameko who sleeps in me.
How to mount the batch file location via WSL2 and start the Docker container
Volume of optimizing Hyper-v to eliminate the tightness of disk capacity (engineer using Docker)
Up to the point of launching a Docker container built using RedHat Quarkus
How to start with Hyper-V instead of WSL2 on Docker Desktop for Windows
[Rails] How to decide the destination by "rails routes"
How to find the cause of the Ruby error
How to get a heapdump from a Docker container
How to get today's day of the week
[For beginners] How to implement the delete function
Change the timezone of the https-portal container to JST
Output of how to use the slice method
How to update pre-built files in docker container
[Ruby] Code to display the day of the week
[Java] (for MacOS) How to set the classpath
Change the location folder of Docker image & container
How to use nginx-ingress-controller with Docker for Mac
How Docker works ~ Implement the container in 60 lines
[Java] How to get the authority of the folder
How to specify index of JavaScript for statement
How to build a Jenkins server with a Docker container on CentOS 7 of VirtualBox and access the Jenkins server from a local PC
[Must-see for beginners] I changed the display of the posting time to Japanese time [l method]
How to install Docker in the local environment of an existing Rails application [Rails 6 / MySQL 8]
Do you really understand? How to check the library and license used by the app
How to request by passing an array to the query with HTTP Client of Ruby
[ruby] How to assign a value to a hash by referring to the value and key of another hash
[Rails] How to display the weather forecast of the registered address in Japanese using OpenWeatherMap
A review of the code used by rails beginners
How to delete / update the list field of OneToMany
How to set the display time to Japan time in Rails
How to build Docker + Springboot app (for basic learning)
How to figure out how much disk Docker is using
How to return to the previous screen by Swipe operation
How to write Scala from the perspective of Java
How to remove the underline displayed by Rails link_to