UBUNTU14 installation Docker-ce

Source: Internet
Author: User

Uninstall the old Docker first

sudo apt-get remove docker docker-engine docker.io docker-ce

Using the repository via HTTPS (repository)

sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common

Add Docker's official GPG key

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Setting up the stable repository

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

Update APT Package index

sudo apt-get update

Install the latest version of the Docker CE

sudo apt-get install -y docker-ce

or list versions, select Install

apt-cache madison docker-ce
sudo apt-get install docker-ce=<VERSION>

Example:

sudo apt-get install docker-ce=17.12.1~ce-0~ubuntu

View service Status

[email protected]:~$ sudo /etc/init.d/docker startstart: Job is already running: docker[email protected]:~$ sudo /etc/init.d/docker stopdocker stop/waiting[email protected]:~$ sudo /etc/init.d/docker statusdocker stop/waiting[email protected]:~$ sudo /etc/init.d/docker restartstop: Unknown instance: docker start/running, process 31877

Verify normal, sudo docker run Hello-world

[email protected]:~$ sudo docker run hello-worldunable to find image ' Hello-world:latest ' locallylatest:pulling fro M Library/hello-world9bb5a5d4561a:pull Complete digest:sha256: f5233545e43561214ca4891fd1157e1c3c563316ed8e237750d59bde73361e77status:downloaded newer image for Hello-world: Latesthello from docker! This message shows the your installation appears to be working correctly. To generate this message, Docker took the following steps:1. The Docker client contacted the Docker daemon.    2. The Docker daemon pulled the "Hello-world" image from the Docker Hub. (AMD64)  3. The Docker daemon created a new container from this image which runs the executable that produces the output is Currently reading. 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal. To try something + ambitious, you can run an Ubuntu container with: $ docker run-it ubuntu Bashshare images, automate Workflows, and more with a free Docker id:https://Hub.docker.com/for more examples and ideas, visit:https://docs.docker.com/engine/userguide/ 

Everything is OK.

Ps:io,engine are all early versions of Docker. Ce is a community version, relatively new. EE is an enterprise version.

UBUNTU14 installation Docker-ce

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.