This repository was created to store Docker courses/training files and personal projects.
Linux Ubuntu or Mint (or based).
I have tested it on Feren OS, an Ubuntu based distro
sudo apt-get updatesudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-commoncurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -1.2.1. Verify that you now have the key with the fingerprint 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88, by searching for the last 8 characters of the fingerprint
sudo apt-key fingerprint 0EBFCD88Note: The lsb_release -cs sub-command below returns the name of your Ubuntu distribution, such as xenial. Sometimes, in a distribution like Linux Mint, you might need to change $(lsb_release -cs) to your parent Ubuntu distribution. For example, if you are using Linux Mint Tessa, you could use bionic. Docker does not offer any guarantees on untested and unsupported Ubuntu distributions.
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"1.3.1. If you get the error: "malformed input repository not added", you can solve this by adding the repository manually.
sudo nano /etc/apt/sources.list.d/additional-repositories.listadd the following line in the file:
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stablethen, run:
sudo apt updatesudo nano /etc/apt/sources.listadd the following line in the file:
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stablethen, run:
sudo apt updatesudo apt-get updatesudo apt-get install docker-ce docker-ce-cli containerd.io2.2. Verify that Docker Engine is installed correctly by running the hello-world image. This command downloads a test image and runs it in a container. When the container runs, it prints an informational message and exits.
sudo docker run hello-worldsudo groupadd dockersudo usermod -aG docker $USERIf testing on a virtual machine, it may be necessary to restart the virtual machine for changes to take effect.
On a desktop Linux environment such as X Windows, log out of your session completely and then log back in.
On Linux, you can also run the following command to activate the changes to groups:
newgrp docker3.4. Verify that you can run docker commands without sudo. This command downloads a test image and runs it in a container. When the container runs, it prints an informational message and exits.
docker run hello-worldhttps://docs.docker.com/engine/install/ubuntu/
https://stackoverflow.com/questions/57402923/docker-installation-on-linux-mint-19-2-doesnt-work
