Error rebuilding - Cannot start container - connection reset by peer

If you’re in a hurry and have nothing else to try, try adding this to your Yaml file (note the empty space between single quotes:

DOCKER_FIX: '                                        '

Stolen from here.