You can provision storage for Docker infrastructure on VxFS. The Docker infrastructure is managed by Docker Daemon. One of the ways to provision storage for Docker containers is from the Docker infrastructure. You can create and run Docker containers by provisioning storage from the Docker infrastructure. The Docker Daemon uses the '/var/lib/docker' directory on the VxFS file system for creating Docker infrastructure.
Alternatively, storage from VxFS and VxVM can be provisioned as data volumes to Docker containers. You can choose not to create the /var/lib/docker
directory on VxFS, by editing the /etc/sysconfig/docker
file with an alternate directory to be used by the Docker Daemon.
To provision Docker infrastructure from the default Docker directory
# vxdg init dockerdg disk1 disk2
# vxassist -g dockerdg make dockervol 200G
# mkfs -t vxfs /dev/vx/dsk/dockerdg/dockervol
# mount -t vxfs /dev/vx/dsk/dockerdg/dockervol /var/lib/docker/
# systemctl start docker
To provision Docker infrastructure from another directory
# vxdg init dockerdg disk1 disk2
# vxassist -g dockerdg make dockervol 1G
# mkfs -t vxfs /dev/vx/dsk/dockerdg/dockervol
# mount -t vxfs /dev/vx/dsk/dockerdg/dockervol /dockervol
OPTIONS
field with -g dockervol.# grep OPTIONS /etc/sysconfig/docker
# systemctl start docker