Home>Article>Operation and Maintenance> Does ubuntu come with docker?
Ubuntu14.04 version system already comes with Docker package, which can be installed directly. However, for versions before Ubuntu14.04, you need to update the kernel first and then install docker.
The operating environment of this article: ubuntu14.04 system, docker 0.9.1, Dell G3 computer.
Docker comes with ubuntu?
Ubuntu series installation Docker
The official website has installation guides for various environments.
Installation through the system’s own package
Ubuntu 14.04 version system already comes with its own Docker package and can be installed directly.
$ sudo apt-get update $ sudo apt-get install -y docker.io $ sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker $ sudo sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/docker.io
If you use the operating system’s own package to install Docker, the currently installed version is the older 0.9.1. To install newer versions, you can use the Docker repository.
Install the latest version through the Docker source
To install the latest Docker version, you first need to install apt-transport-https support, and then install it by adding the source.
$ sudo apt-get install apt-transport-https $ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 $ sudo bash -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" $ sudo apt-get update $ sudo apt-get install lxc-docker
Previous version 14.04
If it is a lower 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
Recommended learning: "docker tutorial"
The above is the detailed content of Does ubuntu come with docker?. For more information, please follow other related articles on the PHP Chinese website!