This is your first step to get started with Docker engine on Debian 9. So, to run Docker commands as a non-root user, you must add your user to the “ docker” group.In this article, I’ll show you how to install Docker on Debian 9 Linux system. In other words, if you attempt to run the docker command without prefixing it with sudo, you’ll get an error message like this: docker ps Docker permission denied. However, only root and users with sudo privileges can execute Docker commands by default. So far, we have successfully installed Docker on your Debian 12 system. For this purpose, we will run a simple application called “ hello-world.” sudo docker run hello-world Docker successfully installed, up & running on Debian 12.Ĭongratulations! As we can see, everything works as expected! Enabling Non-root Users to Run Docker Commands Now let’s check if everything with our new Docker installation works properly. In addition, you can check the Docker service status using the following: sudo systemctl is-active docker Check the status of the Docker service. That’s all! Docker should now be installed the service started and enabled to start automatically on boot.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |