Docker parallel build failing. Anyone?

this is because it is a race condition. If two docker-in-docker daemons try to set iptables rules at the exact same time it will fail. It they try to update iptables, but one updates a few hundred milliseconds before the other, it would succeed.