Просмотр исходного кода

Merge pull request #19436 from HackToday/fixhostdev

Fix add host device example
Vincent Demeester 9 лет назад
Родитель
Сommit
25f4f71512
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      docs/reference/commandline/run.md

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

@@ -422,12 +422,12 @@ flag:
     $ docker run --device=/dev/sda:/dev/xvdc --rm -it ubuntu fdisk  /dev/xvdc
     $ docker run --device=/dev/sda:/dev/xvdc --rm -it ubuntu fdisk  /dev/xvdc
 
 
     Command (m for help): q
     Command (m for help): q
-    $ docker run --device=/dev/sda:/dev/xvdc:ro --rm -it ubuntu fdisk  /dev/xvdc
+    $ docker run --device=/dev/sda:/dev/xvdc:r --rm -it ubuntu fdisk  /dev/xvdc
     You will not be able to write the partition table.
     You will not be able to write the partition table.
 
 
     Command (m for help): q
     Command (m for help): q
 
 
-    $ docker run --device=/dev/sda:/dev/xvdc --rm -it ubuntu fdisk  /dev/xvdc
+    $ docker run --device=/dev/sda:/dev/xvdc:rw --rm -it ubuntu fdisk  /dev/xvdc
 
 
     Command (m for help): q
     Command (m for help): q