Ubuntu 16.04 Installation Docker

Source: Internet
Author: User
Tags curl gpg docker hub docker run

  1. Front-mounted Installation
    1. To insure that your system is 64-bit

      $ sudo apt-get install     apt-transport-https     ca-certificates     Curl     Software-properties-common

  2. Add Docker official GPG key
    1. $ Curl-fssl HTTPS://DOWNLOAD.DOCKER.COM/LINUX/UBUNTU/GPG | sudo apt-key add-

      Verify key

      $ sudo apt-key fingerprint 0ebfcd88

      Make sure that key fingerprint is:9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88

  3. Install the Warehouse
    1. $ sudo add-apt-repository    "Deb [ARCH=AMD64] Https://download.docker.com/linux/ubuntu    $ (LSB_RELEASE-CS)    Stable "

  4. Installing Docker

    1. $ sudo apt-get update$ sudo apt-get install Docker-ce

  5. Test Doker
    1. $ sudo docker run Hello-world

      The following output indicates that the installation was successful:

    2. Unable to find image ' hello-world:latest ' locally
      Latest:pulling from Library/hello-world
      78445dd45222:pull Complete
      Digest:sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7
      status:downloaded newer image for Hello-world:latest

      Hello 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.
      3. The Docker daemon created a new container from that 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 a Ubuntu container with:
      $ docker run-it Ubuntu bash

      Share images, automate workflows, and more with a free Docker ID:
      https://cloud.docker.com/

      For more examples and ideas, visit:
      https://docs.docker.com/engine/userguide/


PS: This article applies to AMD64-bit Ubuntu system

Ubuntu 16.04 Installation Docker

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.