Articles in this section

How to map volumes in Docker on Plesk server?

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:

  1. Log in to Plesk.

  2. Go to Docker > Docker container > Settings;

  3. In the right Container field - the absolute path to a directory inside the container.

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

    Screenshot 2025-04-17 at 08.25.44.png

  5. 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:
Screenshot 2024-12-30 at 10.22.31.png

Additional info

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

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.