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
— 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