In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to avoid sudo using docker command to explain in detail, the article is very detailed, has a certain reference value, interested friends must read it!
Background
Docker is an advanced lxc-based container engine from paas supplier dotcloud. The source code is hosted on github, developed based on the go language and open source in accordance with the apache 2.0 protocol. Docker provides a way to deploy software automatically in a secure and repeatable environment, and its emergence is a prelude to a change in the way products are released based on cloud computing platforms.
Sudo is one of the most important commands necessary for linux system administrators or advanced users. And because you are using sudo to install docker, it can cause a problem. In the case of ordinary users logging in, sudo must be added when using docker images, so how to make docker sudo-free and still available? So began to search for a solution.
Straighten out the problem
The following error occurs when using docker images as a normal user:
?
1newgrp-docker
Note: the last step is necessary, otherwise because the groups command gets the cached group information, the group information just added does not take effect, so there is also an error in the execution of docker images.
The above is "how to avoid sudo using docker command to explain all the contents of this article, thank you for reading!" Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Original link: http://www.tinylab.org/use-docker-without-sudo/
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.