How to Mount VPSA Volumes as a Docker Data Volumes

It's very simple to mount and access your VPSA shares from Docker containers. Basically once you have your volume exported to your Linux host running docker, all you need to do is specify the host source folder and the Docker destination mount point.

For example, I have and EC2 Ubuntu instance running Docker with VPSA volume exported as a NFS share and I will run a busybox container to access the data.

# mount

10.10.1.163:/export/nas1 on /mnt/nas1 type nfs (rw,vers=4,addr=10.10.1.163,clientaddr=10.0.1.44)

#  docker run -it -v /mnt/nas1:/opt/nas1 busybox

Read Only

Mounting the data read-only will allow you to access your VPSA data while maintaining the integrity of it. Just add ":ro" to the volume specifier.

#  docker run -it -v /mnt/nas1:/opt/nas1:ro busybox

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.