We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24f8707 commit 552b610Copy full SHA for 552b610
install.sh
@@ -47,7 +47,7 @@ if [ $create_docker_machine = "y" ];then
47
eval "$(docker-machine env dev)"
48
49
# Find a better way to retrieve the curent ip
50
- ip=$(ifconfig | grep en2 -A1 | grep "inet " | awk '{print $2}')
+ ip=$(ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p' | head -n 1)
51
52
53
grep -q DOCKER-LOCAL-BEGIN /etc/exports
0 commit comments