How to install docker CE on Ubuntu 18.04 (community version)

Time:2020-3-25

Uninstall old version

If you previously installed an older version, you need to uninstall:


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

Set up warehouse

To updateaptPackage index:


$ sudo apt-get update

Give WayaptAble to use the warehouse through HTTPS:


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

Add 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 choose.


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

I chose the test version.

install

To updateaptPacket index


$ sudo apt-get update

Start installation


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

test


$ sudo docker run hello-world

Reference resources

Get Docker Engine – Coummuntiy for Ubuntu

The above is the whole content of this article. I hope it will help you in your study, and I hope you can support developepaer more.

Recommended Today

02. About easyUI’s topic switching function through combox

Part JS /** *How to change easyUI theme * @param themeName *Subject name */ function fun(){ themeName = $(this).val(); var $easyuiTheme = $(‘#theme’); var url = $easyuiTheme.attr(‘href’); //console.log(url); //Replace a theme with 0 after thems var href = url.substring(0, url.indexOf(‘themes’)) + ‘themes/’ + themeName + ‘/easyui.css’; $easyuiTheme.attr(‘href’, href); var $iframe = $(‘iframe’); if ($iframe.length > […]