Skip to content

Instantly share code, notes, and snippets.

@eicnix
Last active January 29, 2016 20:46
Show Gist options
  • Save eicnix/e0e980d3dcbf3f169e9f to your computer and use it in GitHub Desktop.
Save eicnix/e0e980d3dcbf3f169e9f to your computer and use it in GitHub Desktop.
Curl command to start docker container through marathon
#!/bin/sh
curl myMarathonHost:8080/v2/apps -X POST -H 'Content-Type: application/json' -d "{ "container": { \
"type": "DOCKER", \
"docker": { \
"image": "myUser/myapp" \
}, \
"id": "myapp.v2", \
"instances": 1, \
"cpus": 0.5, \
"mem": 512 \
}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment