Plesk

How to map volumes in Docker on Plesk server?

Question

How to map volumes in Docker?
What should be put to the Destination and Source fields?

Answer

To add a volume mapping, specify the following in a container settings:

  1. Log in to Plesk.

  2. Go to Docker > Docker container > Settings;

  3. In the left Destination field - the absolute path to a directory inside the container.

  4. In the right Source field - the absolute path to the directory on the server that should be mounted in the container:

Note: Plesk server backups do not include Docker configurations (for example: volume mapping)

Additional info

Additional documentation can be found in Plesk Documentation (Container Settings ) and in Docker Docs Docker documentation.