Use bind mounts | Docker Documentation
docs.docker.com › storage › bind-mountsUse bind mounts. 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.