What is the syntax for the “volumes” parameter in the docker module?.
There is no example.
Assume that I have a host dirs at “/opt/my_logs1” and “/opt/my_logs2” and I want to map it to a container volumes at “/opt/logs1” and
“/opt/logs2” respectively.
So what would the syntax be?
Pls advise.
Hi /BK,
If you want to manage volumes in Docker containers, you can use the same Docker CLI-style syntax: [host_directory]:[container_directory] into the volumes parameters (for multiple mounts, use list syntax).
I have an example with the official PostgreSQL Docker image: