-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
"mount destination not absolute: unknown." Seems to be tied to Upgrade from Ubuntu 18.04 to Ubuntu 20.04 #42480
Comments
Looks related to opencontainers/runc#2928, containerd/containerd#5547, and opencontainers/runc#3004 Are you seeing the same issue if you start the image without the bind-mount (without If it still fails with that, could you do a |
Thank you for the response. As a sidenote, you were correct, after downgrading containerd.io to 1.4.4-1, the container began working without an issue. It does still fail without the bind-mount. My inspect looks like this:
|
I had the same issue but with docker-compose (see containerd/containerd#5547 (comment)). |
Looks like that config is incorrect, but that problem was previously ignored;
In the config, there's two volumes defined for Here's an example to reproduce the same: FROM alpine
VOLUME [/notebooks]
VOLUME [/home/notebook] (note that the correct volumes likely had to be Building the above: docker build -t foo . And run
And when showing whats in it (with docker run -it --rm foo sh -c 'apk -q add --no-cache tree && tree /['
/[
├── home
│ └── notebook]
└── notebooks]
3 directories, 0 files |
Excellent! thank you so very much |
We had the volume definition in
|
This issue should be fixed by opencontainers/runc#3004, which relaxed the validation in runc, and is part of runc v1.0.0, which is included in the containerd.io v1.4.7 (and up) packages. Static binaries of docker do not yet include that version of containerd and runc, but should become available with the next docker patch release. Let me go ahead and close this ticket because of the above, but feel free to continue the conversation |
Description
All of my docker images are having some issues. I've used Docker everyday for years, and have never had any issues. However, today (2021-06-07) for the first time, I am now having a very peculiar issue with permissions, it seems. I issue the command
docker run -it -v ~/Documents/notebooks:/notebooks -p 8899:8888 myimage:my-version
This regularly worked without issue. Now, however, I'm getting the response:docker: Error response from daemon: OCI runtime create failed: invalid mount {Destination:[/notebooks] Type:bind Source:/var/lib/docker/volumes/ca4b81f5d5366bbb09b71fcd2353fcbde46bb96ff4e3ca7895fb60d51993fd3a/_data Options:[rbind]}: mount destination [/notebooks] not absolute: unknown. ERRO[0000] error waiting for container: context canceled
So, I looked to see if
/var/lib/docker/volumes/ca4b81f5d5366bbb09b71fcd2353fcbde46bb96ff4e3ca7895fb60d51993fd3a/_data
existed. It does, but it's permissions are off. I notice inconsistent permissions when Ils -al /var/lib/docker/volumes
:drwx-----x 34 root root 61440 Jun 7 11:55 . drwx--x--x 16 root root 4096 Jun 7 11:31 .. drwxr-xr-x 3 root root 4096 Jun 7 08:08 05de6b1c9a0fff7313b7efcbba1c4c36fe96a1c87f2f5fd79872bc052fa2fcc9 drwxr-xr-x 3 root root 4096 Jun 7 08:32 1131e3748469d003fa43445380e437ce121004c97f31e371b07a16163b8f1fce drwxr-xr-x 3 root root 4096 Jun 7 08:32 168c6431448042efe9576b890cf67e7d0b3da0d86018570708578355f56ba044 drwxr-xr-x 3 root root 4096 Jun 7 07:57 2a28be34888a198381c70c85675fb6bcb1f67ac7c6792e214e8f06dd1a0fc917 drwxr-xr-x 3 root root 4096 Jun 7 08:05 548b4143bf75d319347240e1926f6d3d966f6a959be80ea7c8280c8aa2d783be drwxr-xr-x 3 root root 4096 Jun 1 13:09 552b5cf49694caabea2564353ae0404ef61455a46cab8a0f9048bd6bf50ea0f2 drwxr-xr-x 3 root root 4096 Jun 7 07:53 5f96b984188413631b88d8e44938a071310e27f29db1f75a1b5aa5baa31fa0af drwxr-xr-x 3 root root 4096 Jun 7 08:16 68573af0a30fda7a84cd693dda7096647769a1bf8e2cb1b679bf55c25fdb7447 drwxr-xr-x 3 root root 4096 Jun 7 10:43 6c47d07b287b222573fb1acd91dd13ad86973b031738ca9989bc08f6e1bcdfd9 drwx-----x 3 root root 4096 Jun 7 10:44 87a4235ef1cfe5a850740b351885d15dc89b1fbf50da3635ffa13d76e459cf84 drwx-----x 3 root root 4096 Jun 7 11:55 ca4b81f5d5366bbb09b71fcd2353fcbde46bb96ff4e3ca7895fb60d51993fd3a ...
I tried updating the permissions
sudo chmod -R 755 /var/lib/docker/volumes/{volume-hash}
but whenever i restart the daemon, or re-issue the run command, the permissions revert, or a new volume is created that also has the wrong permissions.Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: