You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the container_name syntax added in #1711 "docker-compose run" fails with a message like the following:
Conflict. The name "myservice" is already in use by container bc5601faea86. You have to delete (or rename) that container to be able to reuse that name.
docker-compose up -d
docker-compose run --rm myservice /bin/sleep 3
"docker-compose run" is using the same directive to name its container, as can be verified by changing the container_name in docker-compose.yml after starting the service, and running:
docker-compose run -d myservice tail -f /dev/null
I changed the service name to "myservice_name_another", which became the instantiated container's name.
The text was updated successfully, but these errors were encountered:
When using the container_name syntax added in #1711 "docker-compose run" fails with a message like the following:
Example docker-compose.yml:
Commands run:
"docker-compose run" is using the same directive to name its container, as can be verified by changing the container_name in docker-compose.yml after starting the service, and running:
I changed the service name to "myservice_name_another", which became the instantiated container's name.
The text was updated successfully, but these errors were encountered: