Ido Ran
Ido Ran

Reputation: 11374

Is it possible to know how much memory was used for a docker-compose run?

I have a docker-compose configuration for which I'll like to know how much memory was used for a specific run, is there a way to do it?

Upvotes: 0

Views: 259

Answers (1)

Shivani
Shivani

Reputation: 246

I have created a test container using below commands:

enter image description here

I created a new directory and created a file docker-compose.yml in it. When I will run docker-compose up from this directory, it will look for this specific file and create our deployment accordingly. Add the following contents inside this docker-compose.yml file.

enter image description here

The -d flag is added so that to run the container in background Now we can see the stats of the newly created container:

enter image description here

Upvotes: 2

Related Questions