docker icon indicating copy to clipboard operation
docker copied to clipboard

Allow for file-based environment variables

Open DotDev opened this issue 8 years ago • 2 comments

Allows for file content to be set as the environment variable. Useful for e.g. docker secrets were the secret is mounted as a file in /run/secrets/{filename}

DotDev avatar May 20 '17 08:05 DotDev

couldnt you just solve it with a env file?

xsteadfastx avatar May 24 '17 08:05 xsteadfastx

The advantage of using the docker secrets is that the secret itself is never stored on disk in plain text. It's stored encrypted on the docker swarm, and only exposed to the container that is given access. It makes it easier to version control an entire stack (not having the secrets in plain text in an env file) and adds an extra layer of abstraction between the container and the secret; whereas using an env file would mean that the env file should be available on all swarm nodes.

ghost avatar May 26 '17 19:05 ghost

Hello @dotdev,

We've removed support of Ansible for provisioning configuration. Would you like to rebase your PR or close it?

Kdecherf avatar Jul 03 '23 20:07 Kdecherf

Hi @Kdecherf ,

It's been a while, and I no longer am in need for this. I'll close this PR

ghost avatar Jul 16 '23 08:07 ghost