enthuguy
asked on
Docker - Copy file to a location during docker run
Hi Docker experts,
as part of docker run, i mount a NFS volume to the container,
but inside the container, would like to copy a file from the mounted volume and copy to a different location inside the container during docker run
since files in this volume will be more dynamic. I can only copy file after mounting
please suggest/advice
as part of docker run, i mount a NFS volume to the container,
but inside the container, would like to copy a file from the mounted volume and copy to a different location inside the container during docker run
since files in this volume will be more dynamic. I can only copy file after mounting
please suggest/advice
Why not have the NFS volume mounted on a -v exported directory.
And use the NFS volume. to manipulate all data.
And use the NFS volume. to manipulate all data.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Then as container starts, copy the NFS file to the local Docker volume.