Installing Docker in Ubuntu

Source: Internet
Author: User

Install version of Ubuntu maintenance
sudo apt-get install docker.iosource /etc/bash_completion.d/docker.io
Install the version of Docker maintenance method one
    1. View APT's HTTPS support ls /usr/lib/apt/methods/https if there is a skip step 2
    2. Installing HTTPS supportsudo apt-get update && sudo apt-get install -y apt-transport-https
    3. Add Warehouseecho deb https://get.docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list
    4. Add keysudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E93D8576A8BA88D21E9
    5. Installationsudo apt-get update && sudo apt-get install -y lxc-docker
Method Two
    1. Installing Curlsudo apt-get install -y curl
    2. Install by scriptcurl -sSL https://get.docker.com/ubuntu/ | sudo sh
Post-installation configuration for non-root users using Docker
    1. Add current user to Docker user group

      sudo gpasswd -a ${USER} dockersudo service docker restart
    2. Re-login System

Installing Docker in 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.