kmfkpromo.blogg.se

Install docker on debian 11
Install docker on debian 11











install docker on debian 11 install docker on debian 11

To apply the new group membership, log out of the server and back in, or type the following: su - user1Ĭonfirm that your user is now added to the docker group by typing: id -nG If you want to avoid typing sudo whenever you run the docker command, add your username to the docker group: usermod -aG docker user1 └─76508 /usr/bin/dockerd -H fd:// -containerd=/run/containerd/containerd.sock Executing the Docker Command Without SudoĪdd a new user in Debian adduser user1 or useradd user1 Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Wed 15:02:12 GMT 1min 2s ago Output: rvice - Docker Application Container Engine The following additional packages will be installed:Ĭontainerd.io docker-ce-cli docker-ce-rootless-extrasĭocker-scan-plugin git git-man liberror-perl libltdl7 libslirp0ĭocker is now installed, the daemon started, and the process enabled to start on boot.Īnd to check if thats active: systemctl status docker Rsion table: 5:20.10.8~3-0~debian-bullseye 500įinally, install Docker: apt install docker-ce Make sure you are about to install from the Docker repo instead of the default Debian repo: apt-cache policy docker-ce Next, update the package database with the Docker packages from the newly added repo: apt update Output: curl -fsSL | sudo apt-key add -Īdd the Docker repository to APT sources: add-apt-repository "deb $(lsb_release -cs) stable"

install docker on debian 11

Then add the GPG key for the official Docker repository to your system: curl -fsSL | sudo apt-key add. Next, install a few prerequisite packages which lets apt use packages over HTTPS: apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common Installing Dockerįirst, update your existing list of packages: apt update If you're new to Debian and want to get started with the basics of creating new user, firewall etc. How to Install and Use Docker on Debian 11













Install docker on debian 11