Skip to content

fix docker compose volume mounts #603

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

Merged

Conversation

tollsimy
Copy link
Contributor

This PR fixes the following error, arising when starting the docker-compose.yaml or dev-docker-compose.yaml files:

"Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/home/kernelci/kernelci/kernelci-api/docker/storage/config/default.conf" to rootfs at "/etc/nginx/conf.d/default.conf": create mountpoint for /etc/nginx/conf.d/default.conf mount: cannot create subdirectories in "/var/lib/docker/overlay2/755b51189a335c2b25bbfd77c32fd44dcc0b5c93159a347e6852c851124716dc/merged/etc/nginx/conf.d/default.conf": 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"

docker --version
Docker version 28.0.4, build b8034c0

@nuclearcat
Copy link
Member

LGTM

@nuclearcat nuclearcat added this pull request to the merge queue Apr 16, 2025
Merged via the queue into kernelci:main with commit 981ad84 Apr 16, 2025
1 check passed
@tollsimy tollsimy deleted the fix/docker-volumes branch April 16, 2025 08:49
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

Successfully merging this pull request may close these issues.

2 participants