Sign inSign up

jecklgamis/etcd

By jecklgamis

•Updated 26 days ago

An Etcd Docker Image (https://github.com/jecklgamis/docker-etcd)

Image
0

706

jecklgamis/etcd repository overview

⁠docker-etcd

Build

This is a single node etcd cluster running inside Docker.

⁠Requirements

  • Docker
  • etcdctl

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

⁠Security Materials

The dummy certificates and keys in this repo were generated using cfssl. See this repo⁠ for details.

  • ca.pem - the CA certificate used to certify the server key pair below
  • server-key.pem - the server private key
  • server.pem - the server certificate (this has 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

Tag summary

Content type

Image

Digest

Size

75.5 MB

Last updated

over 4 years ago

docker pull jecklgamis/etcd