I deployed docker-compose.yml through Docker Swarm.
The container-name in docker-compose.yml was ignored.
I have to use the designated container name, but "docker container name" cannot be used.
Is there any way?
Actually, I needed this task to map the container ip to /etc/hosts.
docker-compose's links, depends-on is doesn't work.
I solved this problem with the "docker inspect" command. and volume mount between docker inspect's result and container's /etc/hosts.