Revert "Assign a stable but unique MAC address to each container"
authorSam <sam.saffron@gmail.com>
Tue, 26 Apr 2016 10:20:33 +0000 (20:20 +1000)
committerSam <sam.saffron@gmail.com>
Tue, 26 Apr 2016 10:20:33 +0000 (20:20 +1000)
launcher

index 983d02707144b9de679c05105e5773d15d9ba4ce..ba2002cb0fa78711f9ad0a98cff46c70bd96888e 100755 (executable)
--- a/launcher
+++ b/launcher
@@ -584,12 +584,9 @@ run_start() {
      # docker added more hostname rules
      hostname=${hostname/_/-}
 
-     mac_address="--mac-address $(echo $hostname | $docker_path run $user_args -i --rm -a stdout -a stderr $image /bin/sh -c "md5sum | sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/'")"
-
      set -x
      $docker_path run $user_args $links $attach_on_run $restart_policy "${env[@]}" -h "$hostname" \
-        -e DOCKER_HOST_IP=$docker_ip --name $config -t $ports $volumes $mac_address $docker_args \
-        $run_image $boot_command
+        -e DOCKER_HOST_IP=$docker_ip --name $config -t $ports $volumes $docker_args $run_image $boot_command
 
    )
    exit 0