The situation:
I deploy a docker-compose in swarm mode, I share a CIFS volume and I can access it.
The problem:
To access it I need to display my credentials in my docker compose file.
Possible solutions:
I’ve seen that it’s possible to use a secret, which could allow me not to leave my password in clear text, but I don’t know how to do it.
docker volumes does not support the credentials option. When using cifs, there is no way around storing the credentials plain text when creating the volume. Even if the volume is created on the cli, a simple docker volume inspect will show the credentials. That’s why I use nfsv4 instead.