Docker : How to run grunt-open?

I have been using a grunt-open package for open my browser when i build my project. Recently I begin to use docker and this works perfectly, But the grunt-open task don’t works anymore.

Exist some way to create a bridge between my docker and my local machine for opens my browser using grunt-open?

  • Invalid parameter value for redirect_uri: Non-public domains not allowed - Spring social login
  • Serve dockerized ZendFramework2 Application with nginx
  • Docker - free up space after removing all images & containers
  • Building a Docker Image via compose results into a new image. why?
  • Strange error about permissions inside a docker container
  • Is there any way to display container names in docker stats?
  • Mounting a network folder to a Docker container in Windows 10
  • Dokku Dockerfile - Cache node_modules / Bower Components
  • docker npm install Error: getaddrinfo ENOTFOUND
  • How does a remote server with docker images know when to pull a new image built with a CI tool?
  • XRDP in Docker Container KDE segfault, LXDE OK
  • Docker Container won't start with systemctl
  • 2 Solutions collect form web for “Docker : How to run grunt-open?”

    There is no way to open an external browser if you are running or building your project inside a docker container. The idea of using docker is to have all the tools you need inside the container.

    You can use an gui less browser like PhantomJS and run grunt-open task inside the docker container.

    There is no “automatic” way – you would need to have some kind of listener on your local machine. So you can’t really use grunt-open from the container but there are any number of ways you could have the grunt task in the container send a call to your local machine which could use grunt-open (or npm-open which it’s a wrapper for, or opn which npm-open is a wrapper for) — or a simple shell script.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.