is there a way I can use docker_secrets within docker_container?
If this is not possible maybe someone could help me with this:
I want to configure the initial admin-password of a container. Therefore I can use a mounted file in the container (for example docker secret) or an encrypted string (htpasswd) as a command argument. I only want to store the plain password in the ansible vault, not the encrypted version or an additional file on disk.
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).
Surely not best practice, but with Portainer I could use secrets in my local stack without being in a Swarm-Cluster. It works great and I thought it would be nice to recreate my stack in Ansible to go a step further to automate additional tasks outside Docker-compose