浏览代码

Merge pull request #5566 from felixrabe/patch-5

cli.md: Add another sudo
O.S. Tezer 11 年之前
父节点
当前提交
069400a7ac
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/sources/reference/commandline/cli.md

+ 1 - 1
docs/sources/reference/commandline/cli.md

@@ -498,7 +498,7 @@ Import to docker via pipe and *stdin*.
 
 **Import from a local directory:**
 
-    $ sudo tar -c . | docker import - exampleimagedir
+    $ sudo tar -c . | sudo docker import - exampleimagedir
 
 Note the `sudo` in this example – you must preserve
 the ownership of the files (especially root ownership) during the