Question: what are volumes in docker?
Answer: Volumes are the preferred mechanism for persisting data generated by and used by Docker containers. While bind mounts are dependent on the directory structure of the host machine, volumes are completely managed by Docker. ... New volumes can have their content pre-populated by a container.