https://github.com/PacktPublishing/Hands-On-Docker-for-Microservices-with-Python/tree/master/Chapter06/thoughts_backend
上記リポジトリに対して
$ docker-compose up -d db
でイメージを作成しますが以下のようなエラーになります。
/bin/sh: /opt/code/db/postgres-setup.sh: Permission denied
ERROR: Service 'db' failed to build: The command '/bin/sh -c /opt/code/db/postgres-setup.sh' returned a non-zero code: 126
より詳細は下を参照してください。