Does ubuntu come with docker?

藏色散人
Release: 2022-01-04 17:05:11
Original
3366 people have browsed it

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.

Does ubuntu come with 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
Copy after login

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
Copy after login

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
Copy after login

Then repeat the above steps.

Start the Docker service after installation.

$ sudo service docker start
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!