Ubuntu Series Installation Docker
The official website has installation guides for various environments.
Installation through the system's own package
The Docker package is already included in the Ubuntu 14.04 version system, which can be installed directly.
$ sudo apt-get update $ sudo apt-get install -y $ sudo ln -sf /usr/bin/ /usr/local/bin/docker $ sudo sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/
If you use the operating system's own package to install Docker, the currently installed version is relatively old 0.9.1. To install an updated version, you can use the Docker source.
Install the latest version through Docker source
To install the latest Docker version, you first need to install apt-transport-https support, and then install by adding a source.
$ sudo apt-get install apt-transport-https $ sudo apt-key adv --keyserver hkp://:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 $ sudo bash -c "echo deb /ubuntu docker main > /etc/apt//" $ sudo apt-get update $ sudo apt-get install lxc-docker
Versions before 14.04
If it is an earlier version of Ubuntu system, you need to update the kernel first.
$ sudo apt-get update $ sudo apt-get install linux-image-generic-lts-raring linux-headers-generic-lts-raring $ sudo reboot
Then repeat the above steps.
Start the Docker service after installation.
$ sudo service docker start
Thank you for reading, I hope it can help you. Thank you for your support for this site!