docker run -d registry.aliyuncs.com/google_containers/etcd:3.5.0-0 /usr/local/bin/etcd
docker ps|grep etcd
docker exec –it <containerid> sh
etcdctl put x 0
etcdctl get x -w=json
{"header":{"cluster_id":14841639068965178418,"member_id":10276657743932975437,"revision":2,"raft_term":2},"kvs":[{"key":"eA==","create_revision":2,"mod_revision":2,"version":1,"value":"MA=="}],"count":1}
etcdctl put x 1
etcdctl get x
x
1
etcdctl get x --rev=2
x
0