Skip to content

Instantly share code, notes, and snippets.

@mkdym
Created August 28, 2023 01:32
Show Gist options
  • Save mkdym/7193d25af949f1033a392580c54f4e14 to your computer and use it in GitHub Desktop.
Save mkdym/7193d25af949f1033a392580c54f4e14 to your computer and use it in GitHub Desktop.
docker run -d --name etcd-server -p 2379:2379 -p 2380:2380 quay.io/coreos/etcd:v3.5.0 etcd --advertise-client-urls http://0.0.0.0:2379 --listen-client-urls http://0.0.0.0:2379
etcdctl --endpoints 127.0.0.1:2379 user add root
etcdctl --endpoints 127.0.0.1:2379 user grant-role root root
etcdctl --endpoints 127.0.0.1:2379 auth enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment