DEV Community

Discussion on: How to run docker on Windows without Docker Desktop

Collapse
 
dlvoy profile image
Dominik Dzienia

For me launching dockerd failed since chain of commands with ifconfig returned some extra garbage.

I was able to fix it with adding | head -n 1 at the end, so final command would look like:

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`
Enter fullscreen mode Exit fullscreen mode
Collapse
 
patrickleboutillier profile image
Patrick LeBoutillier

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.