Volumes are the preferred mechanism for persisting data generated by and used by Docker containers. When you use a volume, a new directory is created within Docker's storage directory on the host machine, and Docker manages that directory's contents. https://docs.docker.com/storage/volumes/ https://docs.docker.com/compose/compose-file/07-volumes/ > [!Note] > Though both methods are similar, there is a slight difference. If you want your storage to be fully managed by Docker and accessed only through Docker containers and the Docker CLI, you should choose to use persistent storage. However, if you need full control of the storage and want to allow other processes besides Docker to access or modify the storage layer, then bind mounts is the right choice for your environment.