ERROR: Encountered errors while bringing up the project. DJANGO Docker

Successfully built 112f09badeb6 Successfully tagged be-django-nw_nginx:latest be-django-nw_db_1 is up-to-date Recreating cb0d468ab8a2_be-django-nw_web_1 ... error

ERROR: for cb0d468ab8a2_be-django-nw_web_1 Cannot start service web: failed to create shim: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/opt/BE-Django-Nw/.env" to rootfs at "/backendPeti/backendPeti/.env": mount /opt/BE-Django-Nw/.env:/backendPeti/backendPeti/.env (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

ERROR: for web  Cannot start service web: failed to create shim: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/opt/BE-Django-Nw/.env" to rootfs at "/backendPeti/backendPeti/.env": mount /opt/BE-Django-Nw/.env:/backendPeti/backendPeti/.env (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
ERROR: Encountered errors while bringing up the project.

i try docker image prune, docker system prune and i remove .env and i make it again but doesnt work. what should i do??

Back to Top