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
Installing ServerPilot and Creating an App on Ubuntu 14.04 LTS 64bitInstall Percona Server 5.7 MySQL on Ubuntu, CentOS or Debian
How to install ISPConfig panel on a VPS - Alternative of cPanel - free cPanel
Install LAMP (Linux Apache, Mysql Server and Php) on an Ubuntu 14.04 64bit VPS Server
Ubuntu 16.04 VPS LAMP + HTTP/2