Install Docker CE on Ubuntu with "apt"

Q

How to install Docker CE (Community Edition) on Ubuntu with "apt"?

✍: FYIcenter.com

A

You can follow this tutorial to install Docker CE (Community Edition) on Ubuntu with the "apt" tool.

1. Get your Ubuntu codename with "lsb_release" command.

fyicenter$ lsb_release -cs

bionic

2. Get your system architecture name with "arch" or "uname -m" command. x86_64 means amd64.

fyicenter$ arch

x86_64

3. Add Docker repository to "apt" tool.

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

4. Update "apt" package index.

fyicenter$ sudo apt-get update

5. Install the latest version of docker-ce, docker-ce-cli, and containerd.io.

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

 

Install Docker CE on Ubuntu Manually

Install Docker CE on Ubuntu

Install Docker CE on Ubuntu

⇑⇑ Docker Container Platform - Tutorials

2019-04-18, 912🔥, 0💬