Created
January 22, 2014 18:40
-
-
Save logikal/8564660 to your computer and use it in GitHub Desktop.
Why you use docker and dvm: setting up an etcd instance to mess around with.
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] uname -a | |
| Darwin log1kal 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64 | |
| > [bin] docker run ubuntu cat /etc/lsb-release | |
| DISTRIB_ID=Ubuntu | |
| DISTRIB_RELEASE=12.04 | |
| DISTRIB_CODENAME=precise | |
| DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS" | |
| > [bin] docker run -d -p 4001:4001 -p 7001:7001 coreos/etcd | |
| Unable to find image 'coreos/etcd' (tag: latest) locally | |
| Pulling repository coreos/etcd | |
| 02657bb2831f: Download complete | |
| 8dbd9e392a96: Download complete | |
| b3736d3b2f03: Download complete | |
| 2627627f7efb: Download complete | |
| 4743e89cf3cf: Download complete | |
| a4b076faa0ce: Download complete | |
| 1efee84167be: Download complete | |
| 51ff4ff666ca: Download complete | |
| f0873f7f6744: Download complete | |
| 5ba89da0e109: Download complete | |
| 7b75287f3e2b0d174fa7b31a76b39cc8702edac38bda52e5ccac6cd9a9a4aaf0 | |
| > [bin] curl -L http://192.168.42.43:4001/v1/keys/message -d value="Hello" | |
| > [bin] curl -L http://192.168.42.43:4001/v1/keys/ | |
| [{"action":"get","key":"/message","value":"Hello","index":2}]% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment