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

Docker container monitoring and log management implementation process analysis

When the scale of Docker deployment becomes large...

Linux common basic commands and usage

This article uses examples to illustrate common b...

Implementation of debugging code through nginx reverse proxy

background Now the company's projects are dev...

Vue.js implements simple timer function

This article example shares the specific code of ...

Sample code for seamless scrolling with flex layout

This article mainly introduces the sample code of...

Sharing tips on using Frameset to center the widescreen

Copy code The code is as follows: <frameset co...

HTML tags: sub tag and sup tag

Today I will introduce two HTML tags that I don’t...

MySQL 8.0.12 decompression version installation tutorial personal test!

Mysql8.0.12 decompression version installation me...

6 Practical Tips for TypeScript Development

Table of contents 1. Determine the entity type be...

Solution to 404 Problem of Tomcat Installation in Docker

Find the containerID of tomcat and enter the toma...

Sample code for changing the color of a png image through a CSS3 filter

This method uses the drop-shadow filter in CSS3 t...

Use CSS to create 3D photo wall effect

Use CSS to create a 3D photo wall. The specific c...