- Created: 11:02 06/03/2017
- Modified: 00:20 28/09/2018
Prerequisites
Process
Commands
# Update
install update
##
# Install dependencies
install apt-transport-https ca-certificates curl software-properties-common -y
##
# Add GPG Key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# Add repository
osudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# Update
install update
# Make sure you are about to install from docker repo not Ubuntu
apt-cache policy docker-ce
- Output should be similar to:
docker-ce:
Installed: (none)
Candidate: 18.03.1~ce~3-0~ubuntu
Version table:
18.03.1~ce~3-0~ubuntu 500
500 https://download.docker.com/linux/ubuntu bionic/stable amd64 Packages
# Install Docker Community Edition
install docker-ce
Check Status
osudo systemctl status docker
Further Reading
|