Last active
January 29, 2016 20:46
-
-
Save eicnix/e0e980d3dcbf3f169e9f to your computer and use it in GitHub Desktop.
Curl command to start docker container through marathon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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