Skip to content

How to create a new volume

Volumes are used to make persistent storage that you can manage from Portainer. Note: Create a standalone volume is only supported in a Docker Swarm and Docker Standalone endpoints.

Creating a LOCAL volume

Click Volumes from the side menu and then click Create Volume.

volumes

Complete the detail fields for this volume:

  • Name: Give your volume with a descriptive name
  • Driver Configuration: Local
  • NFS: For local volumes leave this off
  • CIFS: For local volumes leave this off

Once complete, click Create the Volume.

volumes

Creating an NFS volume

In Portainer, you can mount a NFS volume to persist the data of your containers. To achieve this, go to Volumes and then click Create Volume.

volumes

Complete the detail fields for this volume:

  • Name: Give your volume with a descriptive name
  • Driver Configuration: Local
  • NFS: Enable this toggle

Under the NFS Settings section. You will find:

  • Address: Type the hostname or IP address of your NFS Server.
  • NFS Version: Choose the version of NFS that your NFS Server uses.
  • Mount Point: The path where that volume is mounted. E.g. /mnt/nfs01.
  • Options: We recommend leaving the default values in this field.

When this is complete click Create the Volume.

volumes

Creating a CIFS volume

In Portainer, you can mount a CIFS volume to persist the data of your containers. To achieve this, go to Volumes and then click Create Volume.

volumes

Complete the detail fields for this volume:

  • Name: Give your volume with a descriptive name.
  • Driver Configuration: Local
  • NFS: Leave this toggle off
  • CIFS: Enable this toggle

In CIFS Settings section. You will find:

  • Address: Type your CIFS Server name or IP Address
  • Share: Type the name of the share resource
  • CIFS Version: Pick the correct version of CIFS that you're using
  • Username: Your defined user to authenticate
  • Password: Your defined password to authenticate

When this is complete click Create the Volume.

volumes

Notes

Contribute to these docs.