Skip to content

Instantly share code, notes, and snippets.

@sou
Created February 3, 2014 06:24
Show Gist options
  • Save sou/8779598 to your computer and use it in GitHub Desktop.
Save sou/8779598 to your computer and use it in GitHub Desktop.
mesos-docker patch
--- docker.orig 2014-02-03 14:49:24.816807211 +0900
+++ docker 2014-02-03 14:50:24.344805977 +0900
@@ -253,7 +253,7 @@
log.warning('Too many ports were allocated to this image.')
break
cmd += [ '-p', '%d:%d' % (allocated, target) ]
- argv = ['docker'] + docker_opts + cmd + [ image ] + [ arg for arg in args ]
+ argv = ['docker-run'] + docker_opts + cmd + [ image ] + [ arg for arg in args ]
log.info('ARGV ' + ' '.join(str(arg) for arg in argv))
return subprocess.Popen(argv)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment