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

Why should the number of rows in a single MySQL table not exceed 5 million?

Today, let’s discuss an interesting topic: How mu...

Solution to interface deformation when setting frameset height

Currently I have made a project, the interface is ...

Summary of some problems encountered when integrating echarts with vue.js

Preface I'm currently working on the data ana...

Implementation steps for building multi-page programs using Webpack

It is very common to use webpack to build single-...

Vue implements small form validation function

This article example shares the specific code of ...

Docker installs Redis and introduces the visual client for operation

1 Introduction Redis is a high-performance NoSQL ...

JS realizes the effect of Baidu News navigation bar

This article shares the specific code of JS to ac...

8 essential JavaScript code snippets for your project

Table of contents 1. Get the file extension 2. Co...

Summary of methods to check whether the port is open in Linux

Method 1: Use lsof command We can use the lsof co...

HTML table tag tutorial (8): background image attribute BACKGROUND

Set a background image for the table. You can use...

Mysql | Detailed explanation of fuzzy query using wildcards (like,%,_)

Wildcard categories: %Percent wildcard: indicates...

MySQL Interview Questions: How to Set Up Hash Indexes

In addition to B-Tree indexes, MySQL also provide...

React implements paging effect

This article shares the specific code for React t...

Use vue2+elementui for hover prompts

Vue2+elementui's hover prompts are divided in...