docker mounting volumes on host

前端 未结 6 643
陌清茗
陌清茗 2020-11-28 18:34

I have successfully been able to share folders between a docker container with volumes using

docker run -v /host/path:/container/path ...

B

6条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 19:04

    If you came here because you were looking for a simple way to browse any VOLUME:

    1. Find out the name of the volume with docker volume list
    2. Shut down all running containers to which this volume is attached to
    3. Run docker run -it --rm --mount source=[NAME OF VOLUME],target=/volume busybox
    4. A shell will open. cd /volume to enter the volume.

提交回复
热议问题