buttervolume icon indicating copy to clipboard operation
buttervolume copied to clipboard

docker-runc has become runc in docker-ce 18.9.0

Open dabide opened this issue 6 years ago • 4 comments

Version 18.9.0 of Docker CE no longer includes the docker-runc command. In stead, the containerd.io package is installed as a dependency, which contains the runc command.

This means that the Bash aliases in the readme no longer work. They also have another problem: The command inside the bacticks is run immediately when the alias is defined, so if it's put into .bash_aliases, you get a password prompt when starting a new shell.

I have had success putting the following in .bash_aliases:

function drunc () {
  sudo runc --root /run/docker/plugins/runtime-root/plugins.moby/ $@
}

function buttervolume () {
  drunc exec -t $(drunc list|tail -n+2|awk '{print $1}') buttervolume $@
}

dabide avatar Nov 13 '18 19:11 dabide

@dabide

Thanks for reporting that here.

Feel free to open PR. we'll change that next time we work on it.

petrus-v avatar Nov 13 '18 23:11 petrus-v

Something like

function buttervolume () {
  drunc exec -t $(docker plugin ls --no-trunc  | grep 'anybox/buttervolume:latest' |  awk '{print $1}') buttervolume $@
}

is more correct to find plugin's ID.

R-omk avatar Jan 16 '19 12:01 R-omk

True.

dabide avatar Jan 17 '19 12:01 dabide

Thanks, I've pushed a change in the Readme, you can check it's ok or make a PR if needed!

ccomb avatar Jan 17 '19 22:01 ccomb