Docker-compose stats flag missing

Hi Team
I have Created two container’s using docker-compose file. I have found that docker-compose does not have stats option as we have for docker container command.Every time I need to check stats of my two container’s I have to first find out container ID using docker container ls command and then I have to check stats of my command How can we check stats of both of my container’s present in my compose file does someone have any alternative for this ?

Thanks,
Vivek

docker stats $(docker ps -q --filter label=com.docker.compose.project=myproject)

just replace myproject with your project name, which by default is the folder name.

Hi meyay,

Thanks mate for replaying, I will check this and get back to you. :slight_smile: