How to install Docker CE on Ubuntu 18.04 (Community Edition)

How to install Docker CE on Ubuntu 18.04 (Community Edition)

Uninstall old versions

If you have installed an old version before, you need to uninstall it first:

$ sudo apt-get remove docker docker-engine docker.io containerd runc

Setting up a warehouse

Update apt package index:

$ sudo apt-get update

Enable apt to use the repository over HTTPS:

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

Add the official GPG key:

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

Verify your key:

$ sudo apt-key fingerprint 0EBFCD88 

Set which version to use.

$ sudo add-apt-repository \
  "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) \
  test"

I chose the test version.

Install

Update apt package index

$ sudo apt-get update

Start Installation

$ sudo apt-get install docker-ce docker-ce-cli containerd.io

test

$ sudo docker run hello-world 

refer to

Get Docker Engine - Coummuntiy for Ubuntu

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Installation steps of docker-ce on Raspberry Pi 4b ubuntu19 server
  • Installation of Docker CE on Ubuntu
  • How to install docker-ce on ubuntu17.10
  • Ubuntu 16.10 installs docker 17.03.0-ce and configures domestic sources and accelerators
  • Detailed explanation of installing docker ce on Ubuntu 16.10
  • How to create a Docker container cluster with Docker Swarm and DigitalOcean on Ubuntu 16.04

<<:  Summary of situations where MySQL indexes will not be used

>>:  Detailed explanation of React event binding

Recommend

Use CSS to implement special logos or graphics

1. Introduction Since pictures take up a lot of s...

How to configure MySQL on Ubuntu 16.04 server and enable remote connection

background I am learning nodejs recently, and I r...

Detailed explanation of the use of Linux time command

1. Command Introduction time is used to count the...

How to deploy Vue project under nginx

Today I will use the server nginx, and I also nee...

HTML Language Encyclopedia

123WORDPRESS.COM--HTML超文本标记语言速查手册<!-- --> !D...

How to implement web stress testing through Apache Bench

1. Introduction to Apache Bench ApacheBench is a ...

Windows 10 installation vmware14 tutorial diagram

Software Download Download software link: https:/...

Writing and understanding of arrow functions and this in JS

Table of contents Preface 1. How to write functio...

Summarize the common application problems of XHTML code

<br />For some time, I found that many peopl...

Tutorial on using portainer to connect to remote docker

Portainer is a lightweight docker environment man...

Solution to the problem that VC6.0 cannot be used when installed on WIN10

VC6.0 is indeed too old VC6.0 is a development to...

HTML code that can make IE freeze

We simply need to open any text editor, copy the f...