Setting up etcd on a docker container



You can start up etcd instance using the following command :-

I am using bitnami's etcd docker image


sudo docker run -d --name etcd-server  -p 2379:2379 -p 2380:2380 --env ALLOW_NONE_AUTHENTICATION=yes --env ETCD_ADVERTISE_CLIENT_URLS=http://0.0.0.0:2379 bitnami/etcd:latest


To put some key value into it try using the following command :-

Here we are storing a value "Hello World" to key "message"




curl http://127.0.0.1:2379/v2/keys/message -XPUT -d value="Hello world"

To get back the value

curl http://127.0.0.1:2379/v2/keys/message



Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm