Create line in sudo visudo (at WSL to prevent asking password):
%sudo ALL=(ALL) NOPASSWD: /usr/sbin/service docker start
Add in ~/.bashrc
# Start Docker daemon automatically when logging in if not running.
RUNNING=`ps aux | grep dockerd | grep -v grep`
if [ -z "$RUNNING" ]; then
sudo /usr/sbin/service docker start > /dev/null 2>&1 &
disown
fi
After restarting the service, it will start automatically.