Hi,
I'm not sure this is possible at all.
docker_secret is a module for Docker's swarm mode. docker_container is
a module for Docker's non-swarm mode. If you use docker_swarm_service
to manage a Docker swarm service, you can specify the secrets to use.
I also cannot find any reference to secrets when looking at the `docker
run` help (which uses the same APIs as the docker_container module
does).
Cheers,
Felix