For me launching dockerd failed since chain of commands with ifconfig returned some extra garbage.
dockerd
ifconfig
I was able to fix it with adding | head -n 1 at the end, so final command would look like:
| head -n 1
sudo dockerd -H `ifconfig eth0 | grep -E "([0-9]{1,3}.){3}[0-9]{1,3}" | grep -v 127.0.0.1 |awk '{ print $2 }' | cut -f2 -d: | head -n 1`
You need to escape the dot (.) in the regexp as such:
"([0-9]{1,3}[.]){3}[0-9]{1,3}"
Then it will work as expected.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
For me launching
dockerd
failed since chain of commands withifconfig
returned some extra garbage.I was able to fix it with adding
| head -n 1
at the end, so final command would look like:You need to escape the dot (.) in the regexp as such:
"([0-9]{1,3}[.]){3}[0-9]{1,3}"
Then it will work as expected.