Service create -e option

Expected behavior

Have a file of env variables to pass to ‘docker service create’

Actual behavior

-e filename no longer seems to work


Just a question really, is it expected behavior to be able to pass a file to the ‘-e’ option in service create or are we suppose to define the list of key=value pairs?


I’m not sure when docker service create -e used to take a filename (perhaps in an RC?) but I don’t believe it does in 1.12 as released. See

Hope this helps,


Yeah, it was a RC. No worries, I scripted out building the command from the file and it works just fine :). Thanks for the reply!