"Docker run -v"의 두 판 사이의 차이

3번째 줄: 3번째 줄:
;docker run -v
;docker run -v
* "Bind mount a volume"
* "Bind mount a volume"
<source lang='bash'>
docker  run  -v `pwd`:`pwd` -w `pwd` -i -t  ubuntu pwd
</source>
<source lang='bash'>
docker run -v /doesnt/exist:/foo -w /foo -i -t ubuntu bash
</source>
<source lang='bash'>
docker run --read-only -v /icanwrite busybox touch /icanwrite/here
</source>
<source lang='bash'>
docker run -t -i -v /var/run/docker.sock:/var/run/docker.sock -v /path/to/static-docker-binary:/usr/bin/docker busybox sh
</source>


==같이 보기==
==같이 보기==

2019년 5월 24일 (금) 11:38 판

1 개요

docker run -v
  • "Bind mount a volume"
docker  run  -v `pwd`:`pwd` -w `pwd` -i -t  ubuntu pwd
docker run -v /doesnt/exist:/foo -w /foo -i -t ubuntu bash
docker run --read-only -v /icanwrite busybox touch /icanwrite/here
docker run -t -i -v /var/run/docker.sock:/var/run/docker.sock -v /path/to/static-docker-binary:/usr/bin/docker busybox sh

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}