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

docker-runc has become runc in docker-ce 18.9.0 #27

Open
dabide opened this issue Nov 13, 2018 · 4 comments
Open

docker-runc has become runc in docker-ce 18.9.0 #27

dabide opened this issue Nov 13, 2018 · 4 comments

Comments

@dabide
Copy link

dabide commented Nov 13, 2018

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 $@
}
@petrus-v
Copy link

@dabide

Thanks for reporting that here.

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

@R-omk
Copy link

R-omk commented Jan 16, 2019

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.

@dabide
Copy link
Author

dabide commented Jan 17, 2019

True.

ccomb added a commit that referenced this issue Jan 17, 2019
…nd functions as alternative to aliases
@ccomb
Copy link
Member

ccomb commented Jan 17, 2019

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

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

4 participants