Sudo apt remove docker docker-engine docker.io containerd runc If you have had Docker installed previously on your system from the Debian repository, you should run the following to remove the services, if you don’t, you can skip to step 2:.You should now run a new update & upgrade on your system to update everything:. $(lsb_release -cs) stable" | sudo tee /etc/apt//docker.list > /dev/null Then, we’ll add the docker repository using this command:.Since our dependecies are installed, we’ll proceed with adding the Docker Repository so we can fetch our download, first of all run the following command to add the GPG Key:Ĭurl -fsSL | sudo gpg -dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg.A root user or a user with root privileges.īefore we start installing everything, we should upgrade our system, so after logging in as root, you can run: apt-get update -yĪpt-get upgrade -y Installing dependenciesĪlso, it’s required by Docker some dependencies, so you can easily install them with this command: apt-get install apt-transport-https ca-certificates curl gnupg lsb-release -y Adding the Docker Repository.Optional steps (Allowing Non-root user to use Docker).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |