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 0.0.0.0:8080 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

  • Kafka setup with docker using kafka-rb for clients
  • Build image using docker file?
  • Docker File and execute phpize error
  • Docker compose v2 containers not finding each other (though v1 does)
  • Cannot access server in docker container
  • Docker “not found” for existing file
  • — Webpack config

    publicPath: isProd ? ‘/’ : ‘http://0.0.0.0:8080/’,

    — Docker command

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

  • Docker: how to restore a detached session screen?
  • How can I ensure graceful scaling in kubernetes?
  • How to test code that works with Docker?
  • Compose two Docker image into one : NodeJS and MongoDB
  • Docker-compose: resolving mongo container from Angular client code
  • Import osm data in Docker postgresql
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.