List containers managed by Docker Compose
26 May 2022 (Updated 26 May 2022)
In the root of a project with a docker-compose.yml
file, run:
docker-compose ps
Example output:
NAME COMMAND SERVICE STATUS PORTS
guestbook-blackfire-1 "/usr/local/bin/entr…" blackfire exited (1)
guestbook-database-1 "docker-entrypoint.s…" database running 0.0.0.0:51961->5432/tcp
guestbook-mailer-1 "mailcatcher --no-qu…" mailer running 0.0.0.0:51958->1025/tcp, 0.0.0.0:51959->1080/tcp
Tagged:
Docker
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment