--- a/docker/run.go Wed Oct 04 15:32:37 2017 -0500
+++ b/docker/run.go Sat Oct 07 11:12:10 2017 -0500
@@ -120,7 +120,12 @@
// set the run command argument to the script file
- scripts, err := st.MapSlice(r.Script, fullEnv)
+ // Scripts must retain order, so don't use st.MapSlice to + // expand things (which results in a non-deterministically + // ordered slice of the expanded input). It also doesn't + // make sense to expand things here anyway - use a loop in + // bash if you need that kind of control. + scripts, err := environment.SliceMapper(r.Script, fullEnv)