Skip to content

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

@V1Reddy

Description

@V1Reddy

Expected behavior

Able to connect to the docker container using the container's IP address

Actual behavior

Receiving connection timed out error while trying to connect to the already running Container

Information

I am not able to connect to the Container that is being hosted at 172.0.0.2:8090 from the host browser on Mac (OS X El Capitan)

Steps to reproduce the behavior

  1. docker run -p 8090:8090 -i owasp/zap2docker-stable zap.sh -daemon -port 8090 -host 0.0.0.0 -config api.disablekey=true
  2. docker ps
  3. docker inspect | grep "IPAddress"
  4. Type the url http://172.0.0.2:8090/UI in the Firefox (or chrome) browser and ultimately the connection gets timed out.

Is this is a known issue in Mac for Docker containers? Am I missing any configuration or settings to allow the traffic from the host browser to the Docker containers?

Any suggestions will be much appreciated.

Thanks.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions