소스 검색

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: