Get started with docker

Docker is a software framework for building, running, and managing containers on servers and the cloud. The recommended way is to use docker in linux platforms.
You could install docker easily by following the commands in Ubuntu terminal.

First, update existing list of packages:

sudo apt update
Next, install a few packages which let apt use packages over HTTPS:
sudo apt install apt-transport-https ca-certificates curl software-properties-common
Then add the GPG key for the official Docker repository to your linux system:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
Add the Docker repository to APT sources:
echo deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Update your existing list of packages again(in case to add required):
sudo apt update
Make sure you are about to install from the Docker repo :
apt-cache policy docker-ce
install Docker:
sudo apt install docker-ce
You are done Check that docker daemon running:
sudo systemctl status docker

Rasika Preethiraj

A technophile at icrony since 2012, In a quest to programmatic automations for scaled organisations through the use of python, php, autoit and machine learning


Comments


Post a Comment



Trending

Latest Posts

Tags

Newsletter

Subscribe to our newsletter for good news, sent out every month.