Ubuntu installation Dockers process:

Source: Internet
Author: User
Tags curl gpg root access

1. Update the system first

1.1 Apt-get Upgrade

1.2 Go to China about Dockers's website

http://get.daocloud.io/

1.3 Installing Docker

Curl-ssl https://get.daocloud.io/docker | sh

1.4 If your computer does not have curl installed, do: sudo apt install curl

1.5 If the error says

2 Installing Docker (Ubuntu 16.04)

    

Prerequisites

To follow this tutorial, you'll need the following:

    • 64-bit Ubuntu 16.04 Server
    • Non-root user with sudo privileges Initial Setup Guide for Ubuntu 16.04 explains how to set the this up.)

Note:docker requires a 64-bit version of Ubuntu as well as a kernel version equal to or greater than 3.10. The default 64-bit Ubuntu 16.04 server meets these requirements.

All the commands-tutorial should be run as a non-root user. If root access is required for the command, it'll be preceded by sudo . Initial Setup Guide for Ubuntu 16.04 explains what to add users and give them sudo access.

Step 1-installing Docker

The Docker installation package available in the official Ubuntu 16.04 repository is not being the latest version. To get the latest and greatest version, install Docker from the official Docker repository. This is section shows what do just.

First, add the GPG key for the official Docker repository to the system:

    • Curl-fssl HTTPS://DOWNLOAD.DOCKER.COM/LINUX/UBUNTU/GPG | sudo apt-key add-

Add the Docker repository to APT sources:

    • sudo add-apt-repository "Deb [ARCH=AMD64] Https://download.docker.com/linux/ubuntu $ (lsb_release-cs) stable"

Next, update the package database with the Docker packages from the newly added repo:

    • sudo apt-get update

Make sure is about-to-install from the Docker repo instead of the default Ubuntu 16.04 repo:

    • Apt-cache Policy Docker-ce

You should see output similar to the follow:

Output of Apt-cache Policy docker-ce
docker-ce:  Installed: (none)  Candidate: 17.03.1~ce-0~ubuntu-xenial  Version table:     17.03.1~ce-0~ubuntu-xenial 500        500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages     17.03.0~ce-0~ubuntu-xenial 500        500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages

Notice docker-ce that was not installed, and the candidate for installation was from the Docker repository for Ubuntu 16.04. The docker-ce version number might be different.

Finally, install Docker:

    • sudo apt-get install-y docker-ce
    • Note: It is possible to run because Docker is a high version error
    • Because using Docker-er is higher than the version downloaded by the install Docker.io, the latter belongs to the old version of the installation

Docker should now is installed, the daemon started, and the process enabled to start on boot. Check that it ' s running:

    • sudo systemctl status Docker

The output should are similar to the following, showing that the service is active and running:

Output
● docker.service - Docker Application Container Engine   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)   active (running) since Sun 2016-05-01 06:53:52 CDT; 1 weeks 3 days ago     Docs: https://docs.docker.com Main PID: 749 (docker)

Installing Docker now gives don't just the Docker Service (daemon) docker but also the command line utility, or the Docke R client. We ' ll explore how to use the docker command later in this tutorial.

3. Acceleration:

Http://guide.daocloud.io/dcs/docker-9153151.html

Https://www.daocloud.io/mirror#accelerator-doc

Tutorial Main Source: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04

https://docs.docker.com/install/linux/docker-ce/ubuntu/#os-requirements

    

Ubuntu installation Dockers process:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.