Skip to content

Commit fbf60d8

Browse files
author
Charles Haynes
committed
feat(getting-started-with-etcd) simplify getting docker0 interface programmatically
1 parent 6f8f543 commit fbf60d8

File tree

1 file changed

+1
-1
lines changed
  • distributed-configuration/getting-started-with-etcd

1 file changed

+1
-1
lines changed

distributed-configuration/getting-started-with-etcd/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ $ curl -L http://172.17.42.1:4001/v2/keys/
7171
You can also fetch the `docker0` IP programmatically:
7272

7373
```
74-
ETCD_ENDPOINT="$(ifconfig docker0 | grep 'inet ' | awk '{ print $2}'):4001"
74+
ETCD_ENDPOINT="$(ifconfig docker0 | awk '/\<inet\>/ { print $2}'):4001"
7575
```
7676

7777
## Proxy Example

0 commit comments

Comments
 (0)