[Python] python: can't open file 'manage.py': [Errno 1] Operation not permitted

Discussão em 'Python' iniciado por Stack, Julho 6, 2025.

  1. Stack

    Stack Membro Participativo

    When I am running docker-compose up it gives me error:


    python: can't open file 'manage.py': [Errno 1] Operation not permitted
    ​

    I am using MacOS Monterey, Docker version 20.10.22, build 3a2c30b Docker Compose version v2.15.1

    Here is my docker compose file

    beanstalk-django:
    build: .
    command: bash -c "python manage.py migrate api && python manage.py runserver 0.0.0.0:8000"
    ports:
    - "80:8000"
    env_file:
    - .env
    depends_on:
    gpsdataviz-db:
    condition: service_healthy
    links:
    - "gpsdataviz-db"
    environment:
    - USER=${USER}
    volumes:
    - type: bind
    source: ./
    target: /code



    I have tried changing permissions of docker and terminal from settings but not working either

    Continue reading...

Compartilhe esta Página