Add a new volume

Adding a local 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.

Adding an NFS 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.

Adding a CIFS 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.

Adding a tmpfs 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: