docker.io install ubuntu code example
Example 1: install docker ubuntu
sudo apt install docker.io
Example 2: install docker ubuntu
sudo apt install docker.io -y
Example 3: docker ubuntu installation
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Example 4: ubuntu install docker
sudo usermod -aG docker ${USER}
Example 5: docker install ubuntu
$ sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"