pyspider
pyspider copied to clipboard
Errors for nginx volumes in deployment demo
I'm trying to replicate the deployment demo setup from here:
http://docs.pyspider.org/en/latest/Deployment-demo.pyspider.org/ but I'm getting these errors at the nginx volumes lines:
Starting pyspider_nginx_1 ... error
ERROR: for pyspider_nginx_1 Cannot start service nginx: b'OCI runtime create failed: container_linux.go:346: starting container process caused "process_linux.go:449: container init caused \\"rootfs_linux.go:58: mounting \\\\\\"/home/binux/nfs/profile/nginx/nginx.conf\\\\\\" to rootfs \\\\\\"/var/lib/docker/overlay2/866fba6db330f1e3ce2ad44dc2fbcee3bf3c37762681f92f5ec67faedca3dc29/merged\\\\\\" at \\\\\\"/var/lib/docker/overlay2/866fba6db330f1e3ce2ad44dc2fbcee3bf3c37762681f92f5ec67faedca3dc29/merged/etc/nginx/nginx.conf\\\\\\" caused \\\\\\"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 nginx Cannot start service nginx: b'OCI runtime create failed: container_linux.go:346: starting container process caused "process_linux.go:449: container init caused \\"rootfs_linux.go:58: mounting \\\\\\"/home/binux/nfs/profile/nginx/nginx.conf\\\\\\" to rootfs \\\\\\"/var/lib/docker/overlay2/866fba6db330f1e3ce2ad44dc2fbcee3bf3c37762681f92f5ec67faedca3dc29/merged\\\\\\" at \\\\\\"/var/lib/docker/overlay2/866fba6db330f1e3ce2ad44dc2fbcee3bf3c37762681f92f5ec67faedca3dc29/merged/etc/nginx/nginx.conf\\\\\\" caused \\\\\\"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've tried several things but I still don't know what I'm doing wrong. How can I set the volumes up?