Ubuntu 14.04
Install with wget
This method is easy for install and update, but not for uninstall.
wget -qO- https://get.docker.com/ | sh
sudo usermod -aG docker leo
sudo reboot # optional
docker run hello-world
docker ps
docker ps -a
docker rm <id-listed-by-ps>
docker images
To stop all containers: docker stop $(docker ps -a -q)
.
To remove all containers: docker rm $(docker ps -a -q)
.
To update docker, run wget ..
again.
To uninstall:
sudo apt-get purge lxc-docker
sudo apt-get autoremove --purge lxc-docker
Ref: http://stackoverflow.com/questions/31313497/how-to-remove-docker-installed-using-wget.
Install with apt
Follow instructions of Docker official documents.
Meteor Server with Docker
Mint
# sudo aptitude update
# sudo aptitude install docker.io aufs-tools cgroup-lite apparmor-utils
# sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker
# sudo sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/docker.io
# docker run ubuntu:14.04 echo 'hello ubuntu'
# docker version
Client version: 0.9.1
Go version (client): go1.2.1
Git commit (client): 3600720
Server version: 0.9.1
Git commit (server): 3600720
Go version (server): go1.2.1
Last stable version: 1.2.0, please update docker
ArchLinux
Docker is only available on X86_64 repository so far.
# pacman -S docker
# systemctl enable docker
# systemctl start docker
# docker run ubuntu:14.04 echo 'hello world'
# docker run -i -t ubuntu:14.04 /bin/bash
# lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
# exit
# docker version
Client version: 1.2.0
Go version (client): go1.3.1
OS/Arch (client): linux/amd64
Server version: 1.2.0
Server API version: 1.14
Go version (server): go1.3.1
So you can see at least for now Docker is much newer and easy to use on Arch than on Mint (Ubuntu). If you install "tree" with apt-get in the container, logout and relogin, you will find the "tree" command disappeared.