From the menu select Volumes then click Add volume.
Complete the information in the Create volume screen, using the table below as a guide.
When you're finished, click Create the volume.
In Portainer, you can mount an NFS volume to persist the data of your containers.
From the menu select Volumes then click Add volume.
Complete the information in the Create volume screen, using the table below as a guide.
Under the NFS Settings section, complete the following.
When you're finished, click Create the volume.
In Portainer, you can mount a CIFS volume to persist the data of your containers.
From the menu select Volumes then click Add volume.
Complete the information in the Create volume screen, using the table below as a guide.
Under the CIFS Settings section, complete the following:
When you're finished, click Create the volume.
From the menu select Volumes then click Add volume.
Complete the information in the Create volume screen, using the table below as a guide.
When you're finished, click Create the volume. The volume can now be attached to a container in the same way as any other volume.
Once attached, you can confirm that the tmpfs volume has been mounted correctly within the container:
Field/Option | Overview |
---|---|
Field/Option | Overview |
---|---|
Field/Option | Overview |
---|---|
Field/Option | Overview |
---|---|
Field/Option | Overview |
---|---|
Field/Option | Overview |
---|---|
Name
Give the volume a descriptive name.
Driver
Select local
.
Use NFS volume
Toggle this off.
Use CIFS volume
Toggle this off.
Deployment
On a multi-node cluster, define the node that will hold the volume.
Name
Give the volume a descriptive name.
Driver
Select local
.
Use NFS volume
Toggle this on.
Use CIFS volume
Toggle this off.
Deployment
On a multi-node cluster, define the node that will hold the volume.
Address
Enter the hostname or IP address of your NFS server.
NFS Version
Select the NFS version that your NFS server uses.
Mount point
Enter the path where the volume is mounted, for example /mnt/nfs01
.
Options
Leave the default values.
Name
Give the volume a descriptive name.
Driver
Select local
.
Use NFS volume
Toggle this off.
Use CIFS volume
Toggle this on.
Deployment
On a multi-node cluster, define the node that will hold the volume.
Address
Enter the CIFS server name or IP address.
Share
Enter the name of the share resource.
CIFS Version
Select the CIFS version that you are using.
Username
Enter the user to authenticate.
Password
Enter the password to authenticate.
Name
Give the volume a descriptive name.
Driver
Select local
.
Driver options
Click add driver option then add the following name/value combinations:
name: type
value: tmpfs
name: device
value: tmpfs
name: o
value: size=100m,uid=1000
(customize these values to suit your needs)
Use NFS volume
Toggle this off.
Use CIFS volume
Toggle this off.
Deployment
On a multi-node cluster, define the node that will hold the volume.