Install docker on Ubuntu

Source: Internet
Author: User

14.04 method 1 for installing docker:

$ sudo apt-get update$ sudo apt-get install docker.io$ sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker$ sudo sed -i ‘$acomplete -F _docker docker‘ /etc/bash_completion.d/docker.io$ sudo apt-get install apt-transport-https$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9$ sudo sh -c "echo deb https://get.docker.io/ubuntu docker main  > /etc/apt/sources.list.d/docker.list"$ sudo apt-get update$ sudo apt-get install lxc-docker


14.04 install docker Method 2:

$ Curl-SSL https://get.docker.io/ubuntu/ | sudo sh # view [email protected]: ~ $ Sudo apt-Get install vimreading package lists... donebuilding dependency tree reading state information... donevim is already the newest version.0 upgraded, 0 newly installed, 0 to remove and 32 not upgraded. [email protected]: ~ $ VI./index.html # Check that HTTPS transport is available to aptif [! -E/usr/lib/APT/methods/HTTPS]; then apt-Get update apt-Get install-y apt-transport-httpsfi # Add the repository to your apt sourcesecho Deb https://get.docker.io/ubuntu docker main>/etc/APT/sources. list. d/docker. list # then import the repository keyapt-key adv -- keyserver HKP: // keyserver.ubuntu.com: 80 -- Recv-keys restart # Install dockerapt-Get updateapt-Get Inst All-y lxc-docker # Alternatively, just use the curl-able install. Sh script provided at https://get.docker.io #~ "./Index.html" 19l, 584c 1, 1, all # Check that HTTPS transport is available to aptif [! -E/usr/lib/APT/methods/HTTPS]; then apt-Get update apt-Get install-y apt-transport-httpsfi # Add the repository to your apt sourcesecho Deb https://get.docker.io/ubuntu docker main>/etc/APT/sources. list. d/docker. list # then import the repository keyapt-key adv -- keyserver HKP: // keyserver.ubuntu.com: 80 -- Recv-keys restart # Install dockerapt-Get updateapt-Get Inst All-y lxc-docker # Alternatively, just use the curl-able install. Sh script provided at https://get.docker.io #~


Install 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.