Use bind mounts | Docker Documentation
https://docs.docker.com/storage/bind-mountsUse bind mounts. Estimated reading time: 13 minutes. Bind mounts have been around since the early days of Docker. Bind mounts have limited functionality compared to volumes.When you use a bind mount, a file or directory on the host machine is mounted into a container. The file or directory is referenced by its absolute path on the host machine.