For Docker Swarm or UCP, install Portworx as a plugin using this page on each swarm node.

Note: If you have previously installed Portworx as a Docker container (as “legacy plugin system”, or v1 plugin), and already have PX-volumes allocated and in use by other Docker containers/applications, read instructions here

Once you have Portworx up, take a look at an example of running stateful application with Portworx and Swarm!