Installing Docker

Follow this guide to download and install Docker onto your Ubuntu Server.

Update Package Information

sudo apt update

Install the Packages

sudo apt upgrade

You will need Curl, so let's install it

sudo apt install curl

Download Docker Installation Script: Use curl to download the Docker installation script.

curl -fsSL https://get.docker.com -o get-docker.sh

Run the Docker Installation Script: Execute the script with sudo to install Docker.

sudo sh get-docker.sh

Verify Docker Installation: After the installation is complete, you can verify that Docker is installed by running:

sudo docker --version

Enable and Start Docker Service: To ensure Docker runs at startup, enable and start the Docker service.

sudo systemctl enable docker
sudo systemctl start docker