docker can't build because of alpine error Build docker with flag "--network host" solved the issue. Here is the link.