DEV Community

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

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 |awk '{ print $2 }' | cut -f2 -d: | head -n 1`
Enter fullscreen mode Exit fullscreen mode
patrickleboutillier profile image
Patrick LeBoutillier

You need to escape the dot (.) in the regexp as such:


Then it will work as expected.