Skip to content

Instantly share code, notes, and snippets.

@dangminhtruong
Last active November 28, 2018 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dangminhtruong/5c95ebe220584d3e0429c05549b98175 to your computer and use it in GitHub Desktop.
Save dangminhtruong/5c95ebe220584d3e0429c05549b98175 to your computer and use it in GitHub Desktop.
#!/bin/sh
curl --unix-socket /var/run/docker.sock -H "Content-Type: application/json" \
-d '{"Image": "ubuntu:16.04","Tty": true, "HostConfig": {"Privileged" : true}}' \
-X POST http:/v1.35/containers/create?name=bird
curl --unix-socket /var/run/docker.sock -X POST http:/v1.37/containers/bird/start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment