Docker Container mount to a mysteric folder which I don't know where is it.
Env: Ubuntu 20.04 When install too many versions of docker on the same machine, it could have a weird mount behavior. I have a folder called /media/xxx/uuid/prod/db, hereafter, "local db folder". and I mount this folder to the /db folder inside container, hereafter "container db folder". I start container like this: docker run --rm --mount type=bind,source=/media/xxx/uuid/prod/db,target=/db image:latest As you can expected, something happened. the container was up and running. the mount seemed not right. If I add a new file to the local db folder , the new file was not available in container db folder , and vice versa, if I add a new file to the container db folder , the file wasn't available in the local db folder either. Looks like the local db folder and container db folder wasn't mapped. Run docker inspect, I could see the mount configure was correct, from /media/xxx/uuid/pr...