소스 검색

Fix the privileged example

Signed-off-by: Kai Qiang Wu(Kennan) <wkqwu@cn.ibm.com>
Kai Qiang Wu(Kennan) 9 년 전
부모
커밋
3cc5550003
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      docs/reference/commandline/run.md

+ 1 - 1
docs/reference/commandline/run.md

@@ -145,7 +145,7 @@ This will *not* work, because by default, most potentially dangerous kernel
 capabilities are dropped; including `cap_sys_admin` (which is required to mount
 capabilities are dropped; including `cap_sys_admin` (which is required to mount
 filesystems). However, the `--privileged` flag will allow it to run:
 filesystems). However, the `--privileged` flag will allow it to run:
 
 
-    $ docker run --privileged ubuntu bash
+    $ docker run -t -i --privileged ubuntu bash
     root@50e3f57e16e6:/# mount -t tmpfs none /mnt
     root@50e3f57e16e6:/# mount -t tmpfs none /mnt
     root@50e3f57e16e6:/# df -h
     root@50e3f57e16e6:/# df -h
     Filesystem      Size  Used Avail Use% Mounted on
     Filesystem      Size  Used Avail Use% Mounted on