-
Notifications
You must be signed in to change notification settings - Fork 0
Give names to your containers
Olivier Berthonneau edited this page Jun 14, 2016
·
1 revision
In development, you sometime need to execute command or inspect in containers. It is possible in docker-compose to give a name to your container with the property container_name
. (example https://github.com/dynamiccast/docker-dev/blob/master/docker-compose-dev.yml#L8).
This will allow you to do the following:
docker inspect ubuntu-qemu
Note that in production you will probably want to let docker-compose assign names so you could scale your containers.