Install Docker on Ubuntu #
Docker is an open platform for developing, shipping, and running applications in containers. This guide will show you how to install Docker on Ubuntu.
Steps to Install Docker #
-
Update your system:
sudo apt-get update
-
Install Docker dependencies:
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
-
Add Docker’s official GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
-
Add Docker apt repository:
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
-
Install Docker:
sudo apt-get update sudo apt-get install docker-ce
-
Start and enable Docker:
sudo systemctl start docker sudo systemctl enable docker
-
Verify Docker installation:
sudo docker --version