Documentation/op-guide: do not use host network, fix indentation
@@ -79,7 +79,9 @@ export NODE1=192.168.1.21
Run the latest version of etcd:
```
-docker run --net=host \
+docker run \
+ -p 2379:2379 \
+ -p 2380:2380 \
--volume=${DATA_DIR}:/etcd-data \
--name etcd quay.io/coreos/etcd:latest \
/usr/local/bin/etcd \
@@ -114,7 +116,9 @@ DATA_DIR=/var/lib/etcd
# For node 1
THIS_NAME=${NAME_1}
THIS_IP=${HOST_1}
-docker run --net=host \
+docker run \
+ -p 2379:2379 \
+ -p 2380:2380 \
--volume=${DATA_DIR}:/etcd-data \
--name etcd quay.io/coreos/etcd:${ETCD_VERSION} \
/usr/local/bin/etcd \
@@ -127,7 +131,9 @@ docker run --net=host \
# For node 2
THIS_NAME=${NAME_2}
THIS_IP=${HOST_2}
-docker run --net=host \
+docker run \
+ -p 2379:2379 \
+ -p 2380:2380 \
--volume=${DATA_DIR}:/etcd-data \
--name etcd quay.io/coreos/etcd:${ETCD_VERSION} \
/usr/local/bin/etcd \
@@ -140,7 +146,9 @@ docker run --net=host \
# For node 3
THIS_NAME=${NAME_3}
THIS_IP=${HOST_3}
-docker run --net=host \
+docker run \
+ -p 2379:2379 \
+ -p 2380:2380 \
--volume=${DATA_DIR}:/etcd-data \
--name etcd quay.io/coreos/etcd:${ETCD_VERSION} \
/usr/local/bin/etcd \
@@ -177,6 +185,8 @@ rkt run \
```
docker run \
+ -p 2379:2379 \
+ -p 2380:2380 \
--volume=/etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt \
quay.io/coreos/etcd:latest \
/usr/local/bin/etcd --name my-name \
