How to Install Docker on Ubuntu
Twitter: @webpwnized
Thank you for watching. Please upvote and subscribe.
Ubuntu supports Docker making Ubuntu Linux a good virtual machine to host docker and docker containers. Docker requires a few more steps to set up than ordinary software packages, but the steps are described on the Docker Documents website. Once Docker is installed on Ubuntu, containers can be added.
This video uses the commands below to install the docker source URL, the docker verification keys, and docker software files. Afterwards the installation is verified and a new group is created to allow the user to run docker commands without using sudo or root access.
YouTube does not allow certain characters in comments so the greater than symbol has ben replaced below
sudo apt update
sudo apt install apt-transport-https ca-certificates curl gnupg lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg –dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo “deb [arch=amd64 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 [GREATER THAN SYMBOLTHAY YOUTUBE DOES NOT ALLOW] /dev/null
sudo apt update
sudo apt-get install docker-ce docker-ce-cli containerd.io
docker -v
sudo docker run hello-world
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
ubuntu