Installation of Docker on Ubuntu 18.04
Installation
Start by running Ubuntu updates
sudo apt update && sudo apt upgrade
- Confirm the download with â
Y
â. - Wait until the update & upgrade has finished.
First we have to install the required packages
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
Add the Docker GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Now we have to install the Docker repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
Now we are able to install Dockersudo apt-get update && sudo apt-get install docker-ce docker-ce-cli containerd.io
Docker has been installed. Check if Docker is workingsudo docker run hello-world
If you get the following message, your Docker installation is working:
Hello from Docker! This message shows that your installation appears to be working correctly.
Related Tutorials
Setup and Configuration of Strongswan & Accel-PPP on Ubuntu 14.04 64bitInstalling and Configuring Wordpress on an Ubuntu 14.04 64bit Server
Install LAMP (Linux Apache, Mysql Server and Php) on an Ubuntu 14.04 64bit VPS Server
Installing ServerPilot and Creating an App on Ubuntu 14.04 LTS 64bit
Install ServerPilot on Ubuntu and creating a secure hosting panel