If I run
docker-compose ps
in my project I get a list of containers with Name, Command, State and Ports specified. Name looks like this:
prefix_real_container_name_1
If I use the full name to execute commands like:
docker-compose stop prefix_real_container_name_1
then I get an error:
No such service: prefix_real_container_name_1
But the following works:
docker-compose stop real_container_name
What is going on here?