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.

  • Docker - how to add new python dependencies to the existing docker image?
  • Deploying own Docker Registry: Registry restarting
  • Vagrant + docker errors
  • Collectd not pushing data to influxdb
  • Running Docker pull command in Dockerfile
  • Unable to run docker image created from ISO
  • 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

  • Docker Toolbox - Localhost not working
  • When would I use `--interactive` without `--tty` in a Docker container?
  • NODE: npm ERR! Could not get cache stat on npm install
  • Update only one Container via docker-compose
  • how to build and run android apk on emulator using dockerfile
  • Mount remote machine directory to its container with docker-machine on windows
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.