-
Notifications
You must be signed in to change notification settings - Fork 59
volumes: volume creation and mount fails on clear linux #23
Comments
This works perfectly for me:
Sounds like |
@jodh-intel that is the only option that works I think (the local directory sharing). Did this command work for you You use fedora right? I wonder if its a clear specific issue? |
@mcastelino - I was running on clr. If the problem affects both cor and runc, that sounds like either a problem with docker/containerd or the docker image you are using. |
@mcastelino @jodh-intel So I think we need to decide if this is a CC or CLR issue, and assign as appropriate. From details so far it seems to be leaning towards CLR to me. |
@mcastelino Does not break docker in Clear Linux version 9950, It work with both cc-oci-runtime and runc. |
I'm also having this Issue using the to reproduce, you need to previously start the
This is what I get from
First 3 lines of journalctl are from the failed |
@mrkz - thanks for the extra info. I can see now that the runtime assumes the "volume" is a directory, but clearly it doesn't have to be :-) |
To resolve this issue, the runtime needs to perform a check on the mount.source and if it's a regular file, create the specified mount.destination to allow the bind mount to succeed. |
I am PR for that |
On clear linux I am unable to launch a container with an attached volume.
This failure is present both with runc and cors
docker-upstream run -it --runtime runc --name webxx -v /webappxx training/webapp python app.py
docker-upstream run -it runc --name webyy -v /webappyy training/webapp python app.py
Both these fail with the error
docker-upstream: An error occurred trying to connect: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create?name=webxx: EOF.
The same command works on ubuntu
The text was updated successfully, but these errors were encountered: