瀏覽代碼

Docs syntax fix

the flags must come before the container name.
Ryan Detzel 10 年之前
父節點
當前提交
b8b9930a8a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/sources/reference/commandline/cli.md

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

@@ -640,7 +640,7 @@ This will create a container named `ubuntu_bash` and start a Bash session.
 This will create a new file `/tmp/execWorks` inside the running container
 `ubuntu_bash`, in the background.
 
-    $ sudo docker exec ubuntu_bash -it bash
+    $ sudo docker exec -it ubuntu_bash bash
 
 This will create a new Bash session in the container `ubuntu_bash`.