Unable to connect to the Docker Container from the host browser on MacOS

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

Sliding Sidebar

About Me

About Me

Hello, my name is Dũng (Johnny). Welcome to my blog.

As I’m a developer, I write about topics related to the field of programming, mainly from a technical point of view. On this blog you’ll find posts which encourage discussion, information about development trends, case studies, reviews, tutorials, tips on how to improve your effectiveness, and anything else that might be fascinating to people from the IT industry.
I love PHP, NodeJS, Java,... and Fullstack.