Last active
November 28, 2018 14:54
-
-
Save dangminhtruong/5c95ebe220584d3e0429c05549b98175 to your computer and use it in GitHub Desktop.
This file contains 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 --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