docker compose命令bash:没有这样的文件或目录

docker compose命令bash:没有这样的文件或目录,docker,docker-compose,Docker,Docker Compose,我在启动docker compose时遇到了这个问题。文件app.sh存在,但docker找不到。我怎样才能修复这个错误 docker-compose.yml: version: '3' volumes: dados: services: db: image: postgres:9.6 volumes: - dados:/var/lib/postgresql/data - /c/Users/Youssef/Documents/c

我在启动docker compose时遇到了这个问题。文件app.sh存在,但docker找不到。我怎样才能修复这个错误

docker-compose.yml:

version: '3'
volumes:
  dados:
services:
    db:
      image: postgres:9.6
      volumes:
        - dados:/var/lib/postgresql/data
        - /c/Users/Youssef/Documents/curso/email-worker-compose/scripts:/scripts
        - /c/Users/Youssef/Documents/curso/email-worker-compose/scripts/init.sql:/docker-entrypoint-initdb.d/init.sql
    frontend:
      image: nginx:1.13
      volumes:
         - /c/Users/Youssef/Documents/curso/email-worker-compose/web:/usr/share/nginx/html/
      ports:
      - 80:80
   app:
     image: python:3.6
     volumes:
       - ./app:/app
     working_dir: /app
     command: bash ./app/app.sh
     ports:
       - 8080:8080
日志:

app.sh

#!/bin/sh
pip install bottle==0.12.13 psycopg2==2.7.1 redis==2.10.5
python -u sender.py

选中斜杠并使文件可执行。

在命令部分,斜杠的方向与此相反。这可能是问题的根源吗?请发布代码和日志的格式化文本,而不是代码和日志的图片。我用双方交换了所有人,没有解决问题,我交换了双方的所有人,但没有解决问题。你让它可执行了吗?尝试在git控制台中打开带有app.sh的文件夹,运行bash app.sh并共享输出$bash./app/app.sh./app/app.sh:line 2:pip:command not found./app/app.sh:line 3:python:command not found in你的git控制台环境中pip和python not存在或不添加到路径
#!/bin/sh
pip install bottle==0.12.13 psycopg2==2.7.1 redis==2.10.5
python -u sender.py