[docker installation detailed version] install docker naked Ubuntu 14.04

Time:2021-10-25
  • Do you feel that the online docker tutorial is very stupid? You did it, but you couldn’t install it

  • Do you feel that there are several versions of docker installation tutorials on the Internet;

  • Have you ever been interested in following the tutorials on the official website and ended up disappointed.

Method 1: install Ubuntu maintenance version, which is an earlier version of docker (Ubuntu pursues stability as a system)

System update

apt update
apt upgrade

Install docker

apt install docker.io

Effective docker

source /etc/bash_completion.d/docker

Restart docker

service docker restart

Method 2. Install docker self maintenance Version (recommended). There are two installation methods here

Official detailed installation method (not recommended)

Check the HTTPS support of apt and check whether the / usr / lib / apt / methods / HTTPS file exists. If it does not exist

apt install -y apt-transport-https

Add the apt warehouse of docker and configure the installation source of docker

sudo sh -c "echo deb https://get.Docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list"

Add key of warehouse

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9

Install docker

sudo apt-get update;sudo apt-get install lxc-docker;

Official easy installation method (recommended)

Because the above four steps are too complicated, the official optimized these four steps and wrote them into a shell script

Install curl

sudo apt install -y curl;

Install the relevant commands. I’m not sure it’s still this link in a few years

sudo curl -sSL https://get.docker.com/ | sh;


//When there is a little brother, little brother, little sister, little sister, give a cup of coffee
if(isGetCoffee){
    Juyufeng.WriteMore();
    Juyufeng.MakeFriends();
    Juyufeng.GaojiWithU();
}

[docker installation detailed version] install docker naked Ubuntu 14.04
[docker installation detailed version] install docker naked Ubuntu 14.04