-
Notifications
You must be signed in to change notification settings - Fork 151
Managing Volumes within Panamax
Panamax supports the volume (-v) command for mounting a host directory as a data volume and adding a data volume to a container. Adding a data volume to a container only requires a container path.
The example above will create a volume inside the container at /my_path and the associated docker -v command will be displayed in the docker run command displayed at the bottom of the screen.
For mounting a host directory, provide the local host path and the mapped container path. This will mount the host /var/local directory into the container at location /var/container. The proper docker -v
command will be displayed in the docker run command element.
NOTE: Within Panamax, the host is always the CoreOS instance, whether running in VirtualBox, a cloud provider or bare metal.
Panamax also supports the volumes from (--volumes-from) command to allow sharing of persistent data between containers. To connect to a data volume container, click the 'Mount a new Data Volume Container' to display a select box which is populated by all the other services within the current application. Selecting a service and clicking save will add the selected service as a data volume container. If the service has any data volumes, they will be displayed adjacent to the name.
The example above shows the centurylink_data-container service has been selected and it provides two volumes: /foo/bar and /this/path/is/longer/than/the/other
- The Panamax project is provided under the Apache 2.0 license by CenturyLink