Closed steeeeev0 closed 2 years ago
The local_settings.py
file that's referenced in the error does appear on disk:
$ ls /home/steve/deploy/docker local_settings.py
Also, if anyone has this running from docker-compose examples, I’d be interested in knowing version numbers for docker and docker-compose to see if downgrading helps.
Hallo stevesanda,
workaround that solved my problem:
First comment the lines in compose file that include those line where local_settings.py is mapped:
#- ./deploy/docker/local_settings.py:/home/mediacms.io/mediacms/deploy/docker/local_settings.py
Run compose file.
Open a container that includes the local_settings.py:
docker exec -ti CONTAINER_NAME bash
Go to directory with the local_settings.py and use command
cat local_settings.py
Copy the code inside and exit the container:
exit
Make directory structure /deploy/docker and new file inside:
nano local_settings.py
Paste the code and edit it for your configuration. Save it and exit the editor.
Uncomment all comments you made before in the compose file at
- ./deploy/docker/local_settings.py:/home/mediacms.io/mediacms/deploy/docker/local_settings.py
Save and exit.
Now run docker compose again. Your containers should be recreated and use the settings you have on the local host under ./deploy/docker/local_settings.py
That solved the problem for me!
HTH
This got me up and running. Thanks for your help!
Describe the issue I cannot start mediacms using docker-compose and docker-compose-named-volumes examples. The error states:
Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/home/steve/deploy/docker/local_settings.py" to rootfs at "/home/mediacms.io/mediacms/deploy/docker/local_settings.py" caused: mount through procfd: 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
To Reproduce Steps to reproduce the issue:
docker-compose --file mediacms-docker-compose.yml --verbose up
Environment (please complete the following information):
Additional context Terminal output: