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

Symlink docker.io binary to docker. #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

griff
Copy link

@griff griff commented May 17, 2014

The binary installed by the docker.io package is called docker.io so this change symlinks that to docker.

The binary installed by the docker.io package is called docker.io so this change symlinks that to docker.
@misheska
Copy link
Owner

I would suggest doing this in a way that doesn't conflict with the existing docker systray app. I suggest this approach from Guy Baconniere via http://blog.docker.io/2014/04/docker-in-ubuntu-ubuntu-in-docker/, fleshing it out into a final, tested solution:

Guy Baconniere
April 19, 2014
Use docker instead of docker.io on Ubuntu 14.04 LTS http://pastebin.com/raw.php?i=hm3y4vJy

# Docker on Ubuntu 14.04 LTS
sudo apt-get install docker.io

#
# if you prefer the command docker over docker.io 
# on Ubuntu 14.04 LTS
#

# Create /usr/bin/docker the Debian/Ubuntu way
# (avoid conflicting with docker – System tray)
sudo update-alternatives –install /usr/bin/docker docker /usr/bin/docker.io 50

# Allow bash completion for docker
sudo cp -a /etc/bash_completion.d/docker{.io,}
sudo sed -i 's/\(docker\)\.io/\1/g' /etc/bash_completion.d/docker

# Allow zsh completion for docker
sudo cp -a /usr/share/zsh/vendor-completions/_docker{.io,}
sudo sed -i 's/\(docker\)\.io/\1/g' /usr/share/zsh/vendor-completions/_docker

# the man page for docker
sudo ln -s /usr/share/man/man1/docker{.io,}.1.gz

# not really needed because docker.io is still there
sudo sed -i 's/\(docker\)\.io/\1/g' /usr/share/docker.io/contrib/*.sh

# Test Docker
sudo docker pull ubuntu
sudo docker run -i -t ubuntu /bin/bash
exit

# TODO?
# sudo dpkg -L docker.io | xargs grep -s ‘docker.io’
# /usr/share/lintian/overrides/docker.io
# /usr/share/doc/docker.io

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

Successfully merging this pull request may close these issues.

2 participants