How to keep files on the host trash which deleted from Docker container

Issue

This Content is from Stack Overflow. Question asked by wangrui1573

  1. The host has the recycle bin enabled, and the deleted files will remain in the trash instead of being deleted directly
  2. After mapping a directory to the docker container, deleting the file in the container will delete it directly instead of appearing on the host

How to make sure that the files deleted in the container appear in the recycle bin of the host?



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?