An Etcd Docker Image (https://github.com/jecklgamis/docker-etcd)
706
This is a single node etcd cluster running inside Docker.
Running without TLS:
docker run -p 2379:2379 -it jecklgamis/etcd:latest
etcdctl put some-key some-value
etcdctl get some-key
Running with TLS:
docker run -e "ENABLE_TLS=true" -p 2379:2379 -it jecklgamis/etcd:latest
etcdctl --cacert ca.pem --endpoints=https://localhost:2379 put some-key some-value
etcdctl --cacert ca.pem --endpoints=https://localhost:2379 get some-key
The dummy certificates and keys in this repo were generated using cfssl.
See this repo
for details.
etcd as CN and localhost as alternate DNS)The files are copied to the /etcd directory (see Dockerfile).
View certificates:
openssl x509 -in server.pem -text -noout
openssl x509 -in ca.pem -text -noout
View server certificate from running instance
openssl s_client -showcerts -connect localhost:2379 </dev/null
Content type
Image
Digest
Size
75.5 MB
Last updated
over 4 years ago
docker pull jecklgamis/etcd