Error while running etcd v3 on Docker #18537
-
Bug report criteria
What happened?I have an error: docker: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused "exec: \"-name\": executable file not found in $PATH"\n". What did you expect to happen?normal start How can we reproduce it (as minimally and precisely as possible)?When I try to run etcd (version 3.0.0) on Docker: sudo docker run -d -v /usr/share/ca-certificates/:/etc/ssl/certs -p 4001:4001 -p 2380:2380 -p 2379:2379 Anything else we need to know?No response Etcd version (please run commands below)version 3.0.0 Etcd configuration (command line flags or environment variables)paste your configuration hereEtcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)$ etcdctl member list -w table
# paste output here
$ etcdctl --endpoints=<member list> endpoint status -w table
# paste output here Relevant log outputNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @lijie123bes, Thanks for opening this issue. This request is more of a support question than a bug, so I'll transfer it to a discussion. Trying to solve the issue:
So, this should work (I verified it does, indentation for clarity): docker run -d -v /usr/share/ca-certificates/:/etc/ssl/certs \
-p 4001:4001 -p 2380:2380 -p 2379:2379 \
--name etcd \
quay.io/coreos/etcd:v3.4.33 \
etcd \
-name etcd0 \
-advertise-client-urls http://${HostIP}:2379,http://${HostIP}:4001 \
-listen-client-urls http://0.0.0.0:2379,http://0.0.0.0:4001 \
-initial-advertise-peer-urls http://${HostIP}:2380 \
-listen-peer-urls http://0.0.0.0:2380/ \
-initial-cluster-token etcd-cluster-1 \
-initial-cluster etcd0=http://${HostIP}:2380 \
-initial-cluster-state new |
Beta Was this translation helpful? Give feedback.
Hi @lijie123bes, Thanks for opening this issue. This request is more of a support question than a bug, so I'll transfer it to a discussion.
Trying to solve the issue:
So, this should work (I verified it does, indentation for clarity):