Issue failed to connect host in container
Step 4/33 : RUN rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
—> Running in 3983d676963f
curl: (7) Failed to connect to 2001:bc8:33a1:100::1: Cannot assign requested address
error: skipping http://rpms.famillecollet.com/enterprise/remi-release-7.rpm – transfer failed
Retrieving http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
ERROR: Service ‘builder’ failed to build: The command ‘/bin/sh -c rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm’ returned a non-zero code: 1

Resolved issue
1. Get Docker subnet:

2. Apple System Preferences -> Network -> Advanced -> Proxies