I work in debian 9.6.1 from under root I create the project

docker run -v `pwd`:/data --rm -it mydjango django-admin.py startproject mynewproject 

all OK! but at the start

 docker run -v `pwd`:/data --rm -it mydjango ./mynewproject manage.py runserver 

get out the error permishen

 docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"./mynewproject\": permission denied": unknown. ERRO[0000] error waiting for container: context canceled 

How to be, I'm working from under the root !? Dockerfile file

 FROM python:3 RUN pip install django RUN mkdir /data RUN chmod +x -R /data WORKDIR /data 
  • And what have the root, if the file most likely just did not mark the file executable - andreymal
  • In the Dockerfile file I specified the chmod + x notation, everything also crashes with an error. - Vadim
  • python manage.py runserver - floydya
  • @floydya Unfortunately it did not help - Vadim
  • one
    docker run -v pwd :/data --rm -it mydjango python mynewproject/manage.py runserver and so? What are you generally trying to do ./mynewproject this? Go to the directory and execute manage.py from there? - floydya

0