Unable to access docker container via local host, webpack

I’m using the following command to create a docker container and mount a volume. I can shell into it fine, install and clone projects into it, they run etc but I can’t access the container from the host machine.

I’ve updated the webpack config to have the following host & port but still no luck. Not sure what else to try? I need to mount the volume and run inside the container but access the code and the server from the host

  • How to connect multiple Dockers to different bridges in a single host machine?
  • How can I expose a Docker container port only to localhost so that it is also accessible via an ssh tunnel?
  • Error pushing image via docker registry v2 api
  • Sharing volume between docker containers
  • How to export directory created inside the Docker image to the host machine?
  • Docker container run error: Container exited on error: exited with status 1
  • — Webpack config

    publicPath: isProd ? ‘/’ : ‘’,

    — Docker command

    docker run –rm -w /code -ti -v ~/.ssh:/root/.ssh -v
    $(pwd)/angular2-dockertest:/code -p 8080:8080 node:6 bash

  • Can't connect to django server running inside docker container (Docker for mac)
  • Mailkit service running inside docker fails
  • Share mountnamespce between container
  • Cannot dump a database in a mysql container
  • Updating wordpress plugins inside a docker container
  • Building a Dockerfile with Vagrant and the Docker provider: multi-line command chaining returns error
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.