- Docker-CE 18.06+
- Docker Compose v1.23.1+
$ docker-compose up -d
$ docker exec -it etcd1 etcdctl set secret password
$ docker exec -it etcd1 etcdctl get /secret
$ docker-compose up -d
$ docker exec -it etcd1 etcdctl set secret password
$ docker exec -it etcd1 etcdctl get /secret