瀏覽代碼

Merge pull request #25239 from dlech/patch-1

Make it clear which parmeter is the user
Vincent Demeester 9 年之前
父節點
當前提交
c7fcf496af
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      docs/installation/linux/ubuntulinux.md

+ 1 - 3
docs/installation/linux/ubuntulinux.md

@@ -243,15 +243,13 @@ To create the `docker` group and add your user:
 
 
 1. Log into Ubuntu as a user with `sudo` privileges.
 1. Log into Ubuntu as a user with `sudo` privileges.
 
 
-    This procedure assumes you log in as the `ubuntu` user.
-
 2. Create the `docker` group.
 2. Create the `docker` group.
 
 
         $ sudo groupadd docker
         $ sudo groupadd docker
 
 
 3. Add your user to `docker` group.
 3. Add your user to `docker` group.
 
 
-        $ sudo usermod -aG docker ubuntu
+        $ sudo usermod -aG docker $USER
 
 
 4. Log out and log back in.
 4. Log out and log back in.