Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deployment error. #118

Closed
nonofr91 opened this issue Dec 21, 2022 · 8 comments
Closed

deployment error. #118

nonofr91 opened this issue Dec 21, 2022 · 8 comments

Comments

@nonofr91
Copy link

I have an error related to mounting the volume ./.docker/nginx.conf:/etc/nginx/conf.d/default.conf:ro

error message:
Error Failure failed to deploy a stack: Network pimcore_default Creating Network pimcore_default Created Container pimcore-db-1 Creating Container pimcore-redis-1 Creating Container pimcore-redis-1 Created Container pimcore-db-1 Created Container pimcore-php-1 Creating Container pimcore-supervisord-1 Creating Container pimcore-supervisord-1 Created Container pimcore-php-1 Created Container pimcore-nginx-1 Creating Container pimcore-nginx-1 Created Container pimcore-db-1 Starting Container pimcore-redis-1 Starting Container pimcore -redis-1 Started Container pimcore-db-1 Started Container pimcore-supervisord-1 Starting Container pimcore-php-1 Starting Container pimcore-supervisord-1 Started Container pimcore-php-1 Started Container pimcore-nginx-1 Starting Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/data/compose/8/.docker/nginx.conf" to rootfs at "/ e tc/nginx/conf.d/default.conf": mount /data/compose/8/.docker/nginx.conf:/etc/nginx/conf.d/default.conf (via /proc/self/fd/6 ), flags: 0x5001: 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

Do you have any idea please.

@Kambiyaso
Copy link

I also have a similar issue - Error invoking remote method 'docker-start-container': Error: (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/host_mnt/Users/Pimcore-Docker-Container/.docker/nginx.conf" to rootfs at "/etc/nginx/conf.d/default.conf" 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

@Kambiyaso
Copy link

I am not sure where to start, deleted the pimcore images a number of times but still same issue with starting NGINX

@dpfaffenbauer
Copy link
Contributor

Check if the specified host path exists and is the expected type

did you check if the file exists?

@Kambiyaso
Copy link

When I looked for the file default.conf in the Path specified - /etc/nginx/conf.d/default.conf, NGINX was not even in etc.

@dpfaffenbauer
Copy link
Contributor

the file needs to be in the same directory as your docker-compose file under /.docker/nginx.conf

@Kambiyaso
Copy link

I have deleted all pimcore images and I want to start from scratch, using docker compose. Can you advise on an effective approach?

@dpfaffenbauer
Copy link
Contributor

@Kambiyaso
Copy link

Ok great! thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants