I want to attach a directory from the host /home/guest/app on a Docker container, but this container make changes on this volumes, and I don’t want this changes reflected on the host.
$ docker run -d --name webserver01 -v /home/guest/app:/app
$ docker exec -ti webserver01 'touch /app/test.txt'
In this case the file
test.txt is created in the container and in the host. How can I prevent this ?, the file only create inside the container ?