4 ms·
>r = os.execute("goproxy exec?cmd=docker+stop+" .. containerID) Please no.
by forgotmypassw 11y ago
>r = os.execute("goproxy exec?cmd=docker+stop+" .. containerID)
Please no.
- voltagex_ 11y agoWhat's another way to do it? This is a hack after all, but I'm sure they'll accept pull requests.
- aduermael 11y agoOf course! We're really not working full time on this, had to make it work. I agree that one is horrible!!!
- beltorak 11y agoThe 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".