Technology portal

MC Tech Solutions

Hardware, networking, software, repair, and technical guides

How to Find Docker Container Name

How to Find Docker Container Name

Check your docker-compose.yml file


Look for the container_name field under the service; that is the container’s name.

List running containers:

sudo docker ps

The container name appears in the NAMES column.

List all containers (including stopped):

sudo docker ps -a

The container name is shown in the NAMES column.

Note: If you explicitly set container_name in your compose file, that is the container’s name (e.g., open-webui). Otherwise, Docker assigns a default generated name.