Multiple instances of Trident are needed when you desire to have multiple storage configurations available
simultaneously. The key to multiple instances is to give them different names using the --alias
option with the
containerized plugin, or --volume-driver
option when instantiating Trident on the host.
Docker Managed Plugin (Docker >= 1.13 / 17.03)
Launch the first instance specifying an alias and configuration file
docker plugin install --grant-all-permissions --alias silver netapp/trident-plugin:19.10 config=silver.json
Launch the second instance, specifying a different alias and configuration file
docker plugin install --grant-all-permissions --alias gold netapp/trident-plugin:19.10 config=gold.json
Create volumes specifying the alias as the driver name
# gold volume docker volume create -d gold --name ntapGold # silver volume docker volume create -d silver --name ntapSilver
Traditional (Docker <=1.12)
Launch the plugin with an NFS configuration using a custom driver ID:
sudo trident --volume-driver=netapp-nas --config=/path/to/config-nfs.json
Launch the plugin with an iSCSI configuration using a custom driver ID:
sudo trident --volume-driver=netapp-san --config=/path/to/config-iscsi.json
Provision Docker volumes each driver instance:
NFS
docker volume create -d netapp-nas --name my_nfs_vol
iSCSI
docker volume create -d netapp-san --name my_iscsi_vol