I am learning Docker by following the get started on its official page.
I got stuck at part 3 when I tried to run
docker service ps getstartedlab_web
the containers fail to start. Checking the logs reveals this
'app.py': [Errno 2] No such file or directory
I saw that this issue has been reported elsewhere and the reason was because of the conflict between the
volume in docker-compose.yml and
workdir in dockerfile.
But my docker-compose.yml doesn't have that
volume property, so what's the problem?
I understand the error message. But I don't know why such an error message was shown. I was able to push/pull and start the container alone with
docker run (without docker-compose). The problem only arises when I tried to use docker-compose to scale it.