We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccc1e1e commit 7f00ee0Copy full SHA for 7f00ee0
Part_04/04《Docker》/文档/Docker.md
@@ -207,6 +207,36 @@ systemctl disable firewalld
207
208
209
210
+#### 3.5 非管理员运行docker
211
+
212
+> 默认情况下,Docker 需要使用 root 或具有 sudo 权限的用户才能运行。如果希望非管理员用户运行 Docker,可以通过将用户添加到 docker 用户组来实现。
213
214
215
216
+##### 3.5.1 创建Docker用户组
217
218
+```shell
219
+sudo groupadd docker
220
+```
221
222
223
224
+##### 3.5.2 将非管理员用户加入 Docker 用户组
225
226
227
+sudo usermod -aG docker your_username
228
229
230
+##### 3.5.3 重新加载组
231
232
233
+newgrp docker
234
235
236
237
238
239
240
241
242
### 四、Docker的中央仓库【`重点`】
0 commit comments