OCI运行时创建失败:container_linux.go:348:

时间:2018-06-06 07:19:25

标签: docker docker-compose dockerfile

我是docker的新手并尝试运行应用。当我运行以下命令

docker-compose run --rm flaskapp /bin/bash -c "cd /opt/services/flaskapp/src && python -c  'import database; database
.init_db()'"

我收到以下错误

Starting systemspuzzlemaster_db_1 ... done
Error response from daemon: OCI runtime create failed: 
container_linux.go:348: starting container process caused "exec: 
\"C:/Program Files/Git/usr/bin/bash\": stat C:/Program 
Files/Git/usr/bin/bash: no such file or directory": unknown

有人可以帮助我,我做错了吗? 这是我的Dockerfile:

FROM python:3

ENV PYTHONUNBUFFERED 1
RUN mkdir -p /opt/services/flaskapp/src
COPY requirements.txt /opt/services/flaskapp/src/
WORKDIR /opt/services/flaskapp/src
RUN pip install -r requirements.txt
COPY . /opt/services/flaskapp/src
EXPOSE 5001

CMD ["python", "app.py"]

0 个答案:

没有答案