瀏覽代碼

docker: use absolute paths in `-v` example (#7762)

Volume paths must be absolute instead of relative.
Andrey Bienkowski 3 年之前
父節點
當前提交
11e78ec50a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pages/common/docker-run.md

+ 1 - 1
pages/common/docker-run.md

@@ -21,7 +21,7 @@
 
 - Run command in a new container with bind mounted volumes:
 
-`docker run -v {{path/to/host_path}}:{{path/to/container_path}} {{image}} {{command}}`
+`docker run -v {{/path/to/host_path}}:{{/path/to/container_path}} {{image}} {{command}}`
 
 - Run command in a new container with published ports: