Answer the question
In order to leave comments, you need to log in
How to run etcd as a separate service using docker?
Hello.
Executed the following script on my machine in the console:
docker run -d -p 2379:2379 -p 2380:2380 -p 4001:4001 quay.io/coreos/etcd
. Got image etcd. Answer the question
In order to leave comments, you need to log in
I was forwarding the wrong ports.
The container is launched in the terminal window.
If we open another terminal window and look through docker ps
, we get:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1cf15da0a83a quay.io/coreos/etcd:v3.0.16 "/usr/local/bin/etcd…" 5 minutes ago Up 5 minutes 0.0.0.0:2379->2379/tcp, 2380/tcp etcd
{"action":"set","node":{"key":"/mykey","value":"this is awesome","modifiedIndex":4,"createdIndex":4}}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question