diff --git a/docs/v2.0-be/volumes/assets/create_tmpfs_1.png b/docs/v2.0-be/volumes/assets/create_tmpfs_1.png new file mode 100644 index 0000000..0342f51 Binary files /dev/null and b/docs/v2.0-be/volumes/assets/create_tmpfs_1.png differ diff --git a/docs/v2.0-be/volumes/assets/create_tmpfs_2.png b/docs/v2.0-be/volumes/assets/create_tmpfs_2.png new file mode 100644 index 0000000..79c80a9 Binary files /dev/null and b/docs/v2.0-be/volumes/assets/create_tmpfs_2.png differ diff --git a/docs/v2.0-be/volumes/assets/create_tmpfs_3.png b/docs/v2.0-be/volumes/assets/create_tmpfs_3.png new file mode 100644 index 0000000..862a803 Binary files /dev/null and b/docs/v2.0-be/volumes/assets/create_tmpfs_3.png differ diff --git a/docs/v2.0-be/volumes/create.md b/docs/v2.0-be/volumes/create.md index 8e1c8a9..0456b76 100644 --- a/docs/v2.0-be/volumes/create.md +++ b/docs/v2.0-be/volumes/create.md @@ -3,7 +3,11 @@ Volumes are used to make persistent storage that you can manage from Portainer. Note: Creating a standalone volume is only supported in a Docker Swarm and Docker Standalone endpoints. -## Creating a LOCAL volume +* [Creating a local volume](#creating-a-local-volume) +* [Creating an NFS volume](#creating-an-nfs-volume) +* [Creating a CIFS volume](#creating-a-cifs-volume) +* [Creating a tmpfs volume](#creating-a-tmpfs-volume) +## Creating a local volume Click Volumes from the side menu and then click Create Volume. @@ -68,6 +72,40 @@ When this is complete click Create the Volume. ![volumes](assets/create_5.png) +## Creating a tmpfs volume + +To create a tmpfs volume within Portainer, go to Volumes and then click on Create volume. + +![volumes](assets/create_1.png) + +Complete the detail fields for this volume: + +* Name: Give your volume a descriptive name. +* Driver configuration: + * Driver: local + * Driver options: Click add driver option and 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) + +![volumes](assets/create_tmpfs_1.png) + +* NFS: Leave this toggle off +* CIFS: Leave this toggle off + +Once complete, click Create the Volume. + +This volume can now be attached to a container in the same way as any other volume: + +![volumes](assets/create_tmpfs_2.png) + +Once attached, you can confirm the tmpfs volume has been mounted correctly within the container: + +![volumes](assets/create_tmpfs_3.png) + ## :material-note-text: Notes [Contribute to these docs](https://github.com/portainer/portainer-docs/blob/master/contributing.md){target=_blank} \ No newline at end of file diff --git a/docs/v2.0/volumes/assets/create_tmpfs_1.png b/docs/v2.0/volumes/assets/create_tmpfs_1.png new file mode 100644 index 0000000..0342f51 Binary files /dev/null and b/docs/v2.0/volumes/assets/create_tmpfs_1.png differ diff --git a/docs/v2.0/volumes/assets/create_tmpfs_2.png b/docs/v2.0/volumes/assets/create_tmpfs_2.png new file mode 100644 index 0000000..79c80a9 Binary files /dev/null and b/docs/v2.0/volumes/assets/create_tmpfs_2.png differ diff --git a/docs/v2.0/volumes/assets/create_tmpfs_3.png b/docs/v2.0/volumes/assets/create_tmpfs_3.png new file mode 100644 index 0000000..862a803 Binary files /dev/null and b/docs/v2.0/volumes/assets/create_tmpfs_3.png differ diff --git a/docs/v2.0/volumes/create.md b/docs/v2.0/volumes/create.md index 8e1c8a9..8dd811f 100644 --- a/docs/v2.0/volumes/create.md +++ b/docs/v2.0/volumes/create.md @@ -3,7 +3,12 @@ Volumes are used to make persistent storage that you can manage from Portainer. Note: Creating a standalone volume is only supported in a Docker Swarm and Docker Standalone endpoints. -## Creating a LOCAL volume +* [Creating a local volume](#creating-a-local-volume) +* [Creating an NFS volume](#creating-an-nfs-volume) +* [Creating a CIFS volume](#creating-a-cifs-volume) +* [Creating a tmpfs volume](#creating-a-tmpfs-volume) + +## Creating a local volume Click Volumes from the side menu and then click Create Volume. @@ -68,6 +73,40 @@ When this is complete click Create the Volume. ![volumes](assets/create_5.png) +## Creating a tmpfs volume + +To create a tmpfs volume within Portainer, go to Volumes and then click on Create volume. + +![volumes](assets/create_1.png) + +Complete the detail fields for this volume: + +* Name: Give your volume a descriptive name. +* Driver configuration: + * Driver: local + * Driver options: Click add driver option and 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) + +![volumes](assets/create_tmpfs_1.png) + +* NFS: Leave this toggle off +* CIFS: Leave this toggle off + +Once complete, click Create the Volume. + +This volume can now be attached to a container in the same way as any other volume: + +![volumes](assets/create_tmpfs_2.png) + +Once attached, you can confirm the tmpfs volume has been mounted correctly within the container: + +![volumes](assets/create_tmpfs_3.png) + ## :material-note-text: Notes [Contribute to these docs](https://github.com/portainer/portainer-docs/blob/master/contributing.md){target=_blank} \ No newline at end of file