Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to avoid sudo using docker command to explain in detail

2025-02-24 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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report