You may have noticed that you can now download a Docker Volume Plugin for Pure Storage from the Docker Store. The Pure Storage Docker Volume plugin provides seamless integration with Docker containers, enabling persistent storage which is a must for many enterprise and database applications
Installation of the Docker Volume is extremely simple and is well documented at the Docker Store.
Once installed the first thing you must do is to let the Volume plugin know about your Pure FlashArray, update /etc/pure-docker-plugin/pure.json to use your FlashArray’s management (not iSCSI) IP address and API Token.
You can now start the pure-docker-plugin using systemctl start e.g.
[root@z-oracle ~]# systemctl start pure-docker-plugin
You can also check the log file using systemctl status e.g.
[root@z-oracle ~]# systemctl status pure-docker-plugin -l
Create a Volume
You can create a Pure Storage FlashArray volume from your Linux server using the docker volume create command.
[root@z-oracle ~]# docker volume create –driver=pure -o size=100GB –name=ron101 –label=ron
You should now be able to see the newly created volume within the Pure Storage FlashArray.
List a Volume
You can also use the docker volume ls command and filters to show available volumes.
[root@z-oracle ~]# docker volume ls -f name=ron
DRIVER VOLUME NAME
Inspect a Volume
You can use the docker volume inspect command to get a bit more info and to also see where it’s being used.
[root@z-oracle ~]# docker volume inspect ron101
When the Docker Volume is used the Mountpoint will be visible e.g.
[root@z-oracle ~]# docker volume inspect ron100
Delete a Volume
The Pure Storage Volume plugin also supports volume delete.
[root@z-oracle ~]# docker volume rm ron101ron101
[root@z-oracle ~]# docker volume ls -f name=ronDRIVER VOLUME NAME
In this Blog I have shared how we can create, inspect and delete Docker Volumes using the Pure Storage Docker Volume plug-in, in my next post I will share you you can use these volumes for persistent database storage.
Check-out the Pure Storage Developer Community for more examples.Follow @RonEkins