瀏覽代碼

Make install instruction consistent

Right now in ubuntu section, instruction is not consistent
for sudo, so it is better to keep it style same.

Signed-off-by: Kai Qiang Wu(Kennan) <wkqwu@cn.ibm.com>
Kai Qiang Wu(Kennan) 9 年之前
父節點
當前提交
b02552124b
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      docs/installation/linux/ubuntulinux.md

+ 5 - 5
docs/installation/linux/ubuntulinux.md

@@ -50,14 +50,14 @@ your `APT` sources to the new Docker repository.
 Docker's `APT` repository contains Docker 1.7.1 and higher. To set `APT` to use
 packages from the new repository:
 
-1. If you haven't already done so, log into your Ubuntu instance as a privileged user.
+1. Log into your machine as a user with `sudo` or `root` privileges.
 
 2. Open a terminal window.
 
 3. Update package information, ensure that APT works with the `https` method, and that CA certificates are installed.
 
-         $ apt-get update
-         $ apt-get install apt-transport-https ca-certificates
+         $ sudo apt-get update
+         $ sudo apt-get install apt-transport-https ca-certificates
 
 4. Add the new `GPG` key.
 
@@ -94,11 +94,11 @@ packages from the new repository:
 
 9. Update the `APT` package index.
 
-        $ apt-get update
+        $ sudo apt-get update
 
 10. Purge the old repo if it exists.
 
-        $ apt-get purge lxc-docker
+        $ sudo apt-get purge lxc-docker
 
 11. Verify that `APT` is pulling from the right repository.