Requests to docker containers failing on chrome for OSX

I have several docker containers running on OSX using Docker for Mac and I’ve set up port mapping in the docker-compose file in order to access them on localhost. This usually works, but sometimes the requests fail when accessing them from the Chrome browser.

In this event I see nothing in the docker-compose output suggesting that the container has received a request, and the tab just hangs for however long I leave it. The only thing that helps is waiting a few moments and then opening another url (or even the same localhost url) in a different Chrome tab, this sometimes causes the request to localhost to go through.

  • Get command used to start a Docker container
  • DC/OS JMX Access to java application
  • How to properly give argument to docker entrypoint when building a container (docker run …)?
  • docker run command change to .yaml file
  • Trying to create postgis inside docker file gives the error
  • Use RubyMine and Docker for development
  • I’m having no problem with other browsers (Firefox, Safari) and the same containers can be accessed reliably with Chrome on Ubuntu.

    Versions:

    • OSX: 10.12.4
    • Docker: 17.03.1-ce-mac12
    • Chrome: 58.0.3029.110

  • How to install gulp on a docker with docker-compose
  • django-coupons cannot import name 'patterns' in a dockerized django web app
  • Docker hangs when starting jdubois/jhipster container in OS X
  • Change Container Assigned IP address
  • Managing authentication across micro-services
  • Execute docker commands in jenkins (in docker container)
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.