Setup docker official repository 1

Setup docker official repository

$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable"

Here is what the above code is Doing:
1. Add the GPG key for the official Docker repository to the system
2. Add the Docker repository to APT sources
3. Update the package database with the Docker packages from the newly added repo

Similar Posts