Get the App
SLTechnology News&Howtos  ›  Servers  › 

There is no sudo to execute Docker under ubuntu

Shulou Source: shulou.com Published: 2022-06-01 16:07:20 11月15日 Update

This article mainly explains "there is no sudo executive Docker under ubuntu", the content of the explanation in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "there is no sudo executive Docker under ubuntu".

Add a new docker user group

Sudo groupadd docker

Add the current user to the docker user group, and note that the yongboy here is the ubuntu server login user name

Sudo gpasswd-a yongboy docker

Restart the Docker background monitoring process

Sudo service docker restart

After reboot, try to see if it works

If docker version # does not take effect, the system will restart and sudo reboot will take effect.

Thank you for your reading, the above is the content of "there is no sudo execution Docker under ubuntu". After the study of this article, I believe you have a deeper understanding of the problem of implementing Docker without sudo under ubuntu, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Users learning content user groups background that is ideas situations articles more user names knowledge knowledge points articles systems follow process problems practice try Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Docker Shulou Information Apple OPPO Reno