![]() They are available 24×7 and will take care of your request immediately. Of course, you don’t have to install Docker on Debian 11, if you use one of our NVMe VPS Hosting plans, in which case you can simply ask our expert Linux admins to install Docker on Debian 11 for you. Also, you learned how to configure a non-root user to run docker containers. You successfully installed and configured the Docker server on your Debian 11 VPS. ![]() We can now check by accessing the user with this below command: su - robertĪnd then we’ll run the hello world docker docker run hello-worldĬongratulations. With the above command, our user will be created and assigned to the docker group. In this example we will use a test user called “robert” to run the docker container.Ĭreate the new user ‘robert’ on our Debian System using the following command: useradd -m -s /bin/bash -G docker robert.You need to add your non-root user to the ‘docker’ group. mo GET YOUR VPS Optional steps (Allowing Non-root user to use Docker)ĭocker only accepts root user by default, but in this step we’ll enable a non-root user to be able to run containers on it. If you need to allow a non-root user to run Docker containers, you can follow the optional steps below. You have successfully installed Docker on your Debian 11. When your installation complete, you can verify the docker service with the following commands:Īlso, you can check the status of your server with a simple command: systemctl status docker containerdĪnd we are done.Now we can finally run our Docker installation with this command:Īpt install docker-ce docker-ce-cli containerd.io -y.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).Thanks so much for checking out the tutorial on how to install Docker and Portainer on Debian. Docker is a virtualization tool, easy to. I already created a tutorial on how this can be done on Raspberry Pi’s, but this will show you how to install Docker and Portainer on Debian. Installing Docker on a Debian virtual machine allows to keep the use of virtual machines and containers simultaneously. This tutorial looked at how to install Docker and Portainer on Debian. Docker and Portainer are now installed! Conclusion – How to Install Docker and Portainer on Debian When you get there, create a username and password. This will install Docker and it will be accessible by the workstation’s IP address and port 9000. sudo docker run -d -p 8000:8000 -p 9000:9000 -p 9443:9443 -name=portainer -restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latestģ. Download and run Portainer 2.0 by running the commands below. ![]() ![]() ![]() Install and start docker by running the commands below. How to Install Docker and Portainer on Debianġ.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |