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

exec failed: container "xxxxx" does not exist #35

Open
celianvdb opened this issue Dec 15, 2020 · 3 comments
Open

exec failed: container "xxxxx" does not exist #35

celianvdb opened this issue Dec 15, 2020 · 3 comments

Comments

@celianvdb
Copy link

Hi,
I'm currently trying to install buttervolume on a dedicated server.
I followed the install guide, I can now create volume using the anybox/buttervolume:latest driver but I have some problem with the buttervolume command.
I made aliases using

alias drunc="sudo runc --root /run/docker/plugins/runtime-root/plugins.moby/"
alias buttervolume="drunc exec -t $(drunc list|tail -n+2|awk '{print $1}') buttervolume"

But when I execute, for example :

buttervolume scheduled

That return

ERRO[0000] exec failed: container "1ed2837d4ffbddc9994111b57cbfd72a972a64c77a5211099349b8f986af1bcc" does not exist

I noticed that 1ed2837d4ffbddc9994111b57cbfd72a972a64c77a5211099349b8f986af1bcc is the plugin id but I don't understand why this error is talking about container.

Thank for you help!
Have a nice day

Debian : 10.7
Kernel : 4.19.0-12-amd64
Docker : 20.10.0, build 7287ab3
Buttervolume config : default

@ccomb
Copy link
Member

ccomb commented Jan 24, 2021

Hi, sorry I did'nt see your issue sooner.
The container corresponding to the docker plugin seems missing. Was it installed successfully ? Do you see it active when running docker plugin ls ?
Please note that on Debian Sid currently, the root for runc containers (--root option of runc) is in /run/docker/runtime-runc/plugins.moby/ instead of /run/docker/plugins/runtime-root/plugins.moby/

@celianvdb
Copy link
Author

Hi, thanks for your answer.
Unfortunately I reinstalled this server some weeks ago to switch to ubuntu 20.04.
But I just retried and got a similar errors, here are my logs:

celian@tss:~$ docker plugin ls
ID                  NAME                         DESCRIPTION                      ENABLED
72355859a2be        anybox/buttervolume:latest   BTRFS Volume Plugin for Docker   true
celian@tss:~$ export RUNCROOT=/run/docker/runtime-runc/plugins.moby/
celian@tss:~$ alias drunc="sudo runc --root $RUNCROOT"
celian@tss:~$ alias buttervolume="drunc exec -t $(drunc list|tail -n+2|awk '{print $1}') buttervolume"
celian@tss:~$ buttervolume scheduled
ERRO[0000] exec failed: container "buttervolume" does not exist 
exec failed: container "buttervolume" does not exist

@ccomb
Copy link
Member

ccomb commented Feb 13, 2021

It's difficult to guess what the problem comes from, probably some other path-related or docker-related issue. It would be a good idea to write some wrapper installation script...

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

2 participants