Hacker News new | past | comments | ask | show | jobs | submit login

>r = os.execute("goproxy exec?cmd=docker+stop+" .. containerID)

Please no.

What's another way to do it? This is a hack after all, but I'm sure they'll accept pull requests.

Of course! We're really not working full time on this, had to make it work. I agree that one is horrible!!!

The REST purist in me would advise against GET requests for executing actions. Not sure how I'd design the actionable namespace though; not a lot of experience there I'm afraid. But perhaps a POST of "cmd=stop" to "hxxp://$host:$port/docker/container/$containerId".

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact