Install Docker on Ubuntu18

Set up Docker repository##

# Update the apt package index:

sudo apt-get update

# Install the package to allow apt to use the repository via HTTPS:

sudo apt-get install \
 apt-transport-https \
 ca-certificates \
 curl \
 software-properties-common

# Add Docker's official GPG key:

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

# 9 DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88 By searching the last 8 characters of the fingerprint, verify that you now have the key with the fingerprint

sudo apt-key fingerprint 0EBFCD88

Get the name of the Ubuntu distribution

lsb_release -cs

obtain

cosmic

View the system architecture of the machine

amd64

Execute the following command to set up the stable repository:

sudo add-apt-repository \
 " deb [arch=amd64] https://download.docker.com/linux/ubuntu \
 cosmic\
 stable"

It is found that the stable version of 18.10 is temporarily not available, so I switch to 18.04:

sudo add-apt-repository  "deb [arch=amd64] https://download.docker.com/linux/ubuntu  bionic  stable"

Install DOCKER CE

# Update the apt package index.
sudo apt-get update

# Install the latest version of Docker CE
sudo apt-get install docker-ce

Get Docker CE for Ubuntu

Recommended Posts

Install docker on Ubuntu
Install Docker on ubuntu18.04
Install Docker on Ubuntu18
Docker practice (1): install Docker on Ubuntu 16.04
Install Docker on Ubuntu 18.04 offline
ubuntu18.04 install docker
docker install ubuntu
Docker ubuntu: install python-PIL-image environment on 14.04
Install Docker on Centos7
install vscode on ubuntu18
Install Redis on Ubuntu
Install R4 on ubuntu20
Install postgresql-10 on Ubuntu 18.04
Install nodejs10 on Ubuntu16
Install mysql on Ubuntu 14.04
Install Django on ubuntu
Install Python3 on Ubuntu 14.04
Install JDK10+ on Ubuntu
Install Python3 on Ubuntu 16.04
Install KDE on Ubuntu16.04.2
install Docker on centos6.5
Install Python3.7 on Ubuntu
Install flashplayer on Ubuntu
How to install Docker Compose on Ubuntu 18.04
Install docker on ubuntu and basic usage
How to install Prometheus with Docker on Ubuntu 14.04
Install ubuntu on virtual machine
Install OpenSSL 1.0.2 on Ubuntu Server 14.04
Install Python 3.7 on Ubuntu 18.04 LTS
Install Android Studio on Ubuntu
Install scrapy framework on ubuntu
Install docker transfer on Centos7
Install Mysql offline on Ubuntu
Install Oracle Java8 on Ubuntu
Install docker on Centos system
Install Go locale on Ubuntu16
Install common software on Ubuntu 16.04
Install non-portable QQ on ubuntu
How to install and use Docker on Ubuntu 16.04
How to install Memcached on Ubuntu 20.04
How to install Java on Ubuntu 20.04
How to install MySQL on Ubuntu 20.04
How to install VirtualBox on Ubuntu 20.04
How to install Elasticsearch on Ubuntu 20.04
How to install Protobuf 3 on Ubuntu
Install Tenda u12 driver on Ubuntu
How to install Nginx on Ubuntu 20.04
How to install Apache on Ubuntu 20.04
How to install Git on Ubuntu 20.04
How to install MySQL on Ubuntu 20.04
Install Chef server workstation on Ubuntu 18.04
How to install Vagrant on Ubuntu 20.04
How to install Bacula-Web on Ubuntu 14.04
Install botan2 encryption library on ubuntu
How to install PostgreSQL on Ubuntu 16.04
How to install Git on Ubuntu 20.04
How to install Anaconda3 on Ubuntu 18.04
How to install Memcached on Ubuntu 18.04
How to install Jenkins on Ubuntu 16.04
Install and configure Docker in Ubuntu
How to install Go on Ubuntu 20.04