Home > other >  Docker mirror inside the file mapping to the host machine is workable?
Docker mirror inside the file mapping to the host machine is workable?

Time:09-16

Docker mirror inside the file mapping to the host machine is workable?
Feasible can grant instruction how to do

CodePudding user response:

Feasible, data volume/data volume container can realize,
Example: the docker run - d - name test - v/host/directory:/docker/container

CodePudding user response:

How to access to a Shared storage docker container?

CodePudding user response:

CodePudding user response:

# (mapping directory, the colon is inside the container path, in front of the colon is hosting path)
Docker run - v/usr/local/mount/services/conf:/bin/conf

CodePudding user response:

Possible, but I just use others to do the container can realize, don't know how to do, find a way please share

CodePudding user response:

Through the docker volume, usually by -v directory is mapped to a container inside host machine, the docker volume can achieve the container internal file mapping to the corresponding file system of the host machine
First create volume, and then to docker will run - v volume mounted to the container, you can look up in a host machine volume path under the inside of the container file
  • Related