Ubuntu plugin container
Translated from Docker official documents
https://docs.docker.com/engine/installation/linux/ubuntulinux/
Docker create ubuntu 16.04 container
The card cannot be installed at a certain step because it cannot read the official documentation.Docker ubuntu container run. Translation of the installation section, give yourself also hope to give some students to do reference.
Run ubuntu container on windows
Docker ubuntu container
My english level is very vegetable, the insufficient place please everybody treatise.
Ubuntu container image
Domestic official download from Docker will be slow, patient, and sometimes not even, retry may be successful.
Ubuntu
Docker is supporting these Ubuntu operating systems:
· Ubuntu xenial 16.04 (LTS)
· Ubuntu trusty 14.04 (LTS)
· Ubuntu precise 12.04 (LTS)
Note : Ubuntu utopic 14.10 and 15.04 exist in the APT repository of Docker , but are no longer officially supported for long periods of time .
Pre-conditions
Docker requires the installation of the system, no matter what the Ubuntu version. In addition, your kernel version cannot be less than 3.10. The latest version of 3.10 or update maintenance is also acceptable.
the 3.10 kernel lacks some of the features required to run the Docker container. Some of the bugs known in these older versions can cause data loss and frequent instability in some cases.
Check your current kernel version and open the terminal to use Uname-r to display your kernel version:
[Plain]View PlainCopy
$ uname-r
3.11.0-15-generic
Note : If you have previously installed Docker with apt, make sure you have updated your apt docker Source Library.
Upgrade your apt Source library
the APT library for Docker contains Docker 1.7.1 and a higher version. Set The program used by APT to include from the Docker Library:
1. machine logged in with sudo or root privilege mode.
2. open a terminal window.
3. Upgrade the package information to ensure that APT works with The HTTPS method, with the installation of the CA certificate.
[Plain]View PlainCopy
$ sudo apt-get update
$ sudo apt-get install Apt-transport-https ca-certificates
4. Add a new GPG key
[Plain]View PlainCopy
$ sudo apt-key adv--keyserver hkp://p80.pool.sks-keyservers.net:80--recv-keys 58118e89f3a912897c070adbf76221572c52609d
5. find the entry for your Ubuntu operating system and it determines the package that APT will search for. Possible items:
Ubuntu version
Repository
Precise 12.04 (LTS)
Deb Https://apt.dockerproject.org/repo ubuntu-precise Main
Trusty 14.04 (LTS)
Deb Https://apt.dockerproject.org/repo ubuntu-trusty Main
Xenial 16.04 (LTS)
Deb Https://apt.dockerproject.org/repo ubuntu-xenial Main
6. run the following command to replace the placeholder <REPO> with the entry for your operating system (Repository)
[Plain]View PlainCopy
$ echo "<REPO>" | sudo tee/etc/apt/sources.list.d/docker.list
For example,Ubuntu 16.04 uses the following command:
[Plain]View PlainCopy
$ echo "Deb Https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee/etc/apt/sources.list.d/docker.list
7. Upgrade APT Package index
[Plain]View PlainCopy
$ sudo apt-get update
8. Verify that apt is taken from the correct.
When you run the following command, you will return entries for each Docker version that you can install . Each entry should have a URL https://apt.dockerproject.org/repo/. The currently installed version uses the * * * flag. The following is the truncated output.
[Plain]View PlainCopy
$ Apt-cache Policy Docker-engine
Docker-engine:
Installed:1.12.2-0~trusty
Candidate:1.12.2-0~trusty
Version table:
1.12.2-0~trusty 0
Https://apt.dockerproject.org/repo/ubuntu-trusty/main AMD64 Packages
100/var/lib/dpkg/status
1.12.1-0~trusty 0
Https://apt.dockerproject.org/repo/ubuntu-trusty/main AMD64 Packages
1.12.0-0~trusty 0
Https://apt.dockerproject.org/repo/ubuntu-trusty/main AMD64 Packages
1.11.2-0~trusty 0
Https://apt.dockerproject.org/repo/ubuntu-trusty/main AMD64 Packages
1.11.1-0~trusty 0
Https://apt.dockerproject.org/repo/ubuntu-trusty/main AMD64 Packages
From now on, when you run apt-get upgrade,apt is new to the extract.
essential conditions for each Ubuntu version
· Ubuntu xenial 16.04 (LTS)
· Ubuntu trusty 14.04 (LTS)
For Ubuntu trusty and xenial, it is recommended that you install the linux-image-extra-* kernel pack. These linux-image-extra-* packages allow you to use aufs storage drivers.
To install the linux-image-extra-* package:
1. Open a terminal on your Ubuntu host
2. Upgrade your package Manager
[Plain]View PlainCopy
$ sudo apt-get update
3. Install the recommended package
[Plain]View PlainCopy
$ sudo apt-get install linux-image-extra-$ (uname-r) linux-image-extra-virtual
4. continue to install Docker
Ubuntu precise 12.04 (LTS)
For Ubuntu precise ,Docker requires 3.13 kernel version. If your kernel version is lower than 3.13, you must upgrade it. Refer to this table to see which packages are needed for your environment:
Package
Description
Linux-image-generic-lts-trusty
Generic Linux kernel image. This kernel have AUFS built in. This is required to run Docker.
Linux-headers-generic-lts-trusty
Allows packages such as ZFS and VirtualBox guest additions which depend on them. If you didn ' t install the headers for your existing kernel and then you can skip these headers for the "trusty" kernel. If you ' re unsure, you should include the this package for safety.
Xserver-xorg-lts-trusty
Optional in non-graphical environments without unity/xorg. Required when running Docker in machine with a graphical environment.
Libgl1-mesa-glx-lts-trusty
To learn more about the reasons for these packages, read the installation instructions for backported Kernels, Specificall Y thelts enablement Stack-refer to note 5 under each version.
To upgrade your kernel and install additional packages, do the following:
1. Open a terminal on your Ubuntu host
2. Upgrade your package Manager
[Plain]View PlainCopy
$ sudo apt-get update
3. install the required and optional packages
[Plain]View PlainCopy
$ sudo apt-get install Linux-image-generic-lts-trusty
Depending on your environment, you may install the described in the table above.
4. Reboot your console
[Plain]View PlainCopy
$ sudo reboot
5. after your system restarts , continue installing Docker
installation
Make sure your Ubuntu version is ready for the necessary prerequisites:
Then, install Docker by doing the following:
1. Log in to your Ubuntu installation as a sudo privileged user
2. Upgrade your APT package index
[Plain]View PlainCopy
$ sudo apt-get update
3. Installing Docker
[Plain]View PlainCopy
$ sudo apt-get install Docker-engine
4. start the Docker daemon
[Plain]View PlainCopy
$ sudo service docker start
5. Verify that the Docker installation is correct
[Plain]View PlainCopy
$ sudo docker run Hello-world
This command downloads a test image and runs it in a container, and when the container is running, it prints a message of information. Then exit.
Ubuntu Install Docker (Official document translator)