Home > other >  Docker container for NFS mount the root partition
Docker container for NFS mount the root partition

Time:09-27

I want to put the docker container root partition mount for an NFS mount point, don't know if feasible
For example a MFS hardpoints: test:/home/user/3243
Want to similar: docker run - it - v "test:/home/user/3243" :/centos7/bin/bash
If not, can be mounted to the first host, to bind to the container, like:
The mount -t NFS test:/home/user/3243/MNT/NFS/3243
Docker run - it - v/MNT/NFS/3243:/centos7/bin/bash
So, don't know whether I can achieve?

CodePudding user response:

Should not be allowed, the host machine on Docker, can be replicated in the Docker
  • Related