Install discourse error help me?

Your vm, or at least docker containers inside it cannot access github..

You need to diagnose networking for your host or docker.