Installing Docker on Ubuntu

Source: Internet
Author: User
Tags curl gpg docker run

Original link: https://docs.docker.com/engine/installation/linux/ubuntu/Here is the community version of the installation, because usually only do development and use, so do not need to install Enterprise Edition, If you want to know how to install the Enterprise Edition, please refer to the official documentation.
    • Configuring the CE Environment
  1. Configure apt to allow a mirrored installation to be pulled in HTTPS mode:

    sudo Install      apt-transport-HTTPS     CA-certificates     Curl     software- Properties-common

  2. Add Docker official GPG key:

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

    Checksum 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88 .

    sudo apt-key fingerprint 0ebfcd88

  3. Configure the stable image with the following command
    sudo add-apt-repository    "Deb [arch=amd64] https://download.docker.com/linux/ Ubuntu \   $ (lsb_release-CS)    stable"

    • Installing Docker
    1. Update APT Package index
      sudo apt-get update

    2. Install the latest version of Docker
      sudo Install Docker-ce

    3. Verify that Docker is installed successfully
      sudo Docker run Hello-world

      This command downloads a test image, launches a container to run the image, prints some information, and exits.

At this point, Docker has been installed successfully on Ubuntu!

Installing Docker on Ubuntu

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.