Manage docker containers with remote executor via HTTP API.
docker run -p 8181:8181 -v /var/run/docker.sock:/var/run/docker.sock jancajthaml/remote-docker-executor
curl -X POST -H "Content-Type: application/json" -d '{
"image": "golang:1.7",
"cmd": [ "bash" ],
"volumes": [
"/var/run/docker.sock:/var/run/docker.sock",
"/dev/shm:/dev/shm"
],
"ports": []
}' "http://localhost:8181/containers/${CONTAINER_NAME}"
curl "http://localhost:8181/containers/${CONTAINER_NAME}"
curl -X DELETE "http://localhost:8181/containers/${CONTAINER_NAME}"