Simplify --advertise-addr for PWD

This commit is contained in:
Alex Ellis 2017-03-15 11:56:58 +00:00 committed by GitHub
parent a63dd8ee4c
commit 29b624d1b1

View File

@ -15,7 +15,7 @@ The guide makes use of a free testing/cloud service, but if you want to try it o
This one-shot script clones the code, initialises Docker swarm mode and then deploys the FaaS sample stack.
```
# docker swarm init --advertise-addr=$(ifconfig eth0| grep 'inet addr:'| cut -d: -f2 | awk '{ print $1}') && \
# docker swarm init --advertise-addr eth0 && \
git clone https://github.com/alexellis/faas && \
cd faas && \
./deploy_stack.sh && \