Move --docker-args to the end so it gets priority
authorRafael dos Santos Silva <xfalcox@gmail.com>
Tue, 27 Dec 2016 20:12:03 +0000 (18:12 -0200)
committerRafael dos Santos Silva <xfalcox@gmail.com>
Tue, 27 Dec 2016 20:12:03 +0000 (18:12 -0200)
launcher

index c58d1db1f3f2749655b4db2e39700e367fe129dd..e7ae6b635467fad44176ab525b446c5ed5294b2e 100755 (executable)
--- a/launcher
+++ b/launcher
@@ -517,8 +517,8 @@ run_start() {
      fi
 
      set -x
-     $docker_path run $user_args $links $attach_on_run $restart_policy "${env[@]}" "${labels[@]}" -h "$hostname" \
-        -e DOCKER_HOST_IP=$docker_ip --name $config -t $ports $volumes $mac_address $docker_args \
+     $docker_path run $links $attach_on_run $restart_policy "${env[@]}" "${labels[@]}" -h "$hostname" \
+        -e DOCKER_HOST_IP=$docker_ip --name $config -t $ports $volumes $mac_address $docker_args $user_args \
         $run_image $boot_command
 
    )