Comment on Ask HN: Startup Devs -What's your biggest pain while managing cloud deployments?parentComments−niteshade2yNot GP, but I recently attempted to migrate a single-node Docker Compose setup to Docker Swarm and ran into the following issues:- No ability to use secrets as environment variables, and no plans to change this- Cannot use `network_mode` to specify a service to use for network connections a la Docker ComposeThere were a few other minor issues which resulted in ditching Docker Swarm completely and moving to a Nomad + Consul stack instead.−ancieque2yWhile the way secrets work in Swarm seems weird when compared to Kubernetes, this is usually pretty easily solved by a quick overriding entrypoint in the docker stack file that does essentially this: export SOME_VAR=$(cat /run/secrets/some_secret) exec /original/entrypoint.sh Can you explain the second one? I don't get the usecase.
Comments
Not GP, but I recently attempted to migrate a single-node Docker Compose setup to Docker Swarm and ran into the following issues:
- No ability to use secrets as environment variables, and no plans to change this
- Cannot use `network_mode` to specify a service to use for network connections a la Docker Compose
There were a few other minor issues which resulted in ditching Docker Swarm completely and moving to a Nomad + Consul stack instead.
While the way secrets work in Swarm seems weird when compared to Kubernetes, this is usually pretty easily solved by a quick overriding entrypoint in the docker stack file that does essentially this:
Can you explain the second one? I don't get the usecase.