Debian docker11/9/2023 ![]() Liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx2-dbg libquadmath0-dbg git-daemon-run Linux-headers-4.9.0-5-amd64 linux-headers-4.9.0-5-common linux-headers-amd64 linux-kbuild-4.9 linux-libc-devĪufs-dev binutils-doc cpp-doc gcc-6-locales python3-apport menu gcc-multilib autoconf automake libtool flexīison gdb gcc-doc gcc-6-multilib gcc-6-doc libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan3-dbg Liblsan0 libltdl7 libmpc3 libmpfr4 libmpx2 libquadmath0 libtsan0 libubsan0 linux-compiler-gcc-6-x86 Libc-dev-bin libc6-dev libcc1-0 libcilkrts5 liberror-perl libfakeroot libgcc-6-dev libgomp1 libisl15 libitm1 The following additional packages will be installed:Īufs-dkms aufs-tools binutils cgroupfs-mount cpp cpp-6 dkms fakeroot gcc gcc-6 git git-man libasan3 libatomic1 $ wget -quiet -output-document - | sudo apt-key add. $ echo "deb stretch stable" | sudo tee /etc/apt//docker.listĭownload and import public key used to sign this repository. ![]() 26565 files and directories currently installed.) Selecting previously unselected package apt-transport-https. ![]() Get:1 stretch/main amd64 apt-transport-https amd64 1.4.8 The following NEW packages will be installed:Ġ upgraded, 1 newly installed, 0 to remove and 1 not upgraded.Īfter this operation, 243 kB of additional disk space will be used. $ sudo apt-get install apt-transport-https Install apt-transport-https package to enable HTTPS protocol for apt. Now log out from the terminal and log back in to take effect from the changes.Install docker on Debian Stretch to take advantage of the lightweight virtualization.ĭescription:ĝebian GNU/Linux 9.3 (stretch) ![]() Now, add the user to the group (docker): sudo usermod -aG docker $USER To do so, first, create a docker group using the groupadd command: sudo groupadd docker So how about you configure it in such a way that you don't have to use sudo? If you noticed, while running a hello-world image, I used sudo.Īnd this may not be convenient. Here's a replay of all the above commands. The hello-world docker image is tiny and solely aimed to check if Docker is running fine. To verify the Docker installation, you can install the hello-world image: sudo docker run hello-world Now, you can update the repository index and install Docker using the following command: sudo apt update & sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin The extra \ at the end of each line in the above command is just a way to add new line so that you can easily see the entire command. Sudo tee /etc/apt//docker.list > /dev/null etc/os-release & echo "$VERSION_CODENAME")" stable" | \ Once done, use the chmod command to change the permissions of the docker.gpg file: sudo chmod a+r /etc/apt/keyrings/docker.gpgĪnd finally, use the following command to set up the repository for Docker: echo \ Next, download the GPG key and store it in the /etc/apt/keyrings/etc/apt/keyrings directory using the given command: curl -fsSL | sudo gpg -dearmor -o /etc/apt/keyrings/docker.gpg Now, let's create a directory to store the keyrings using the following: sudo install -m 0755 -d /etc/apt/keyrings So first, use the following command to install prerequisites for this method: sudo apt update & sudo apt install ca-certificates curl gnupg The main reason why I recommend using this method is you get hassle-free upgrades as repositories can easily be updated! Install Docker on Debian 12 using Docker repositories Once done, you can proceed to the shown installation methods. ![]() But before you jump to the installation methods, removing the previous installation of Docker is necessary.Īnd to do so, you can use the following command: sudo apt purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |