-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
runc@master failing with Moby CI: TestTemplatedConfig: Options:[rbind ro]}: mount destination templated_config not absolute: unknown #2928
Comments
Option 3 seems the best solution (Being tested in Moby CI: moby/moby#42308) |
Yeah I agree option 3 is the best solution. |
Let's close this and proceed the release process. |
Generally, option 3 sounds good to me (actually surprised that this worked). If we fix this in Moby/Docker, the only concern would be for existing versions of docker that would upgrade to a newer version of RunC. Having a quick look, and it looks like regular bind-mounts already produce an error (on docker 20.10, runc rc93); $ docker run -it --rm -w /app -v $(pwd):somewhere alpine sh
docker: Error response from daemon: invalid volume specification: '/host_mnt/Users/sebastiaan/go/src/github.com/docker/docker.github.io:somewhere': invalid mount config for type "bind": invalid mount path: 'somewhere' mount path must be absolute.
See 'docker run --help'.
$ docker run -it --rm -w /app --mount type=bind,src=$(pwd),target=somewhere alpine sh
docker: Error response from daemon: invalid mount config for type "bind": invalid mount path: 'somewhere' mount path must be absolute.
See 'docker run --help'. I think this would only affect swarm configs; for swarm secrets, the $ echo 'bla' | docker config create bla -
$ echo 'bla' | docker secret create bla -
$ docker service create \
--name myservice \
--config src=bla,target=configblatarget \
--secret src=bla,target=secretblatarget \
nginx:alpine Above doesn't produce an error, and the config is mounted at I think it's a bug, and it should either produce an error, or convert the path to be absolute (relative to |
Reminder that moby is not the only project that uses runc. |
Basically, a configuration that worked before no longer works. |
Cri-containerd is passing the tests with runc master containerd/containerd#5442 |
Right but are the tests testing this case? |
Applying through the normal flow seems to be ok in cri-containerd at least (it prepends a |
AFACS fixing in it higher-level software is straightforward (make the paths absolute). At least some of cri-o tests are run against HEAD runc and we did not see failures (surely there might be no such test case) |
moby/moby#42308
(moby/moby@59751bb , runc @ d279ebd)
Regression in 2192670 ( #2917 )
OCI spec: https://github.com/opencontainers/runtime-spec/blob/master/config.md#mounts
The text was updated successfully, but these errors were encountered: