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:
-
Go to Docker > Docker container > Settings;
-
In the left Destination field - the absolute path to a directory inside the container.
- 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.