kb: how-to
Plesk for Linux
ext: docker
ABT: Group B
Applicable to:
- Plesk Onyx for Linux
Question
How to map volumes in Docker?
What should be put to the Host and Container fields?
Answer
To add a volume mapping, specify the following in a container settings:
-
Go to Docker > Docker container > Settings;
-
In the right Container field - the absolute path to a directory inside the container.
-
In the left Host field - the absolute path to the directory on the server that should be mounted in the container:
- Click Save.
Note: Plesk server backups do not include Docker configurations (for example: volume mapping)
Note: The option to remove the attached volumes when removing a container in the Docker extension was added:
Additional info
Additional documentation can be found in Plesk Documentation (Container Settings ) and in Docker Docs Docker documentation.
Comments
0 comments
Please sign in to leave a comment.