

the NFS version -o vers=3).Īlternatively, you can create an NFS docker volume with the following command and use it on your container without any modification. MOUNT_OPS: additional options to the mount command (e.g.MOUNT_POINT: folder where you want to mount the NFS filesystem inside the Docker Container, The folder should exists.FOLDER: Optional, folder inside the NFS export that you want to mount as the root folder.
showmount -e 1SHARE: Name of the export in the NFS server, you can use showmount -exports NFS_SERVER to see the available exports. NFS Server is pingable and able to telnet to port 2049 and 111.Open the share with the shell (client) and echo Hello World (/6 rds). Once the share is mounted, make sure sudo is set to run SERVERIPADDRESS >:/nfs-share /nfs-mount ls -lh /nfs-mount. The example entrypoint allow you to pass a parameter to the Docker Image to change the behavior, these are the possible parameters: How Mount Nfs In Oracle Linux Then, use the command sudo mkdir /nfs-mount to create a directory for the mount point. SERVER=$Įxec /bin/sh -c Docker template has to be a privileged container to be able to mount the NFS filesystem. You will need a custom entrypoint like the following that shows the environment variables, start the rpcbind service, mount the NFS filesystem, and execute the commands passed from CJE.

In order to mount an NFS filesystem, you will need a Customize entrypoint on CJE Agent Docker images, this allows the Docker Agent to execute custom commands, so you should create a Dockerfile like the following FROM openjdk Resolution Mount the filesystem inside the Docker image
