I set up Docker Swarm at my previous company, but it was a dead and stale project 5 years ago when I last used it. I honestly cannot recommend it in 2024.
- 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.
export SOME_VAR=$(cat /run/secrets/some_secret)
exec /original/entrypoint.sh
Can you explain the second one? I don't get the usecase.