- run:
docker run -it --rm -p 9000:9000 aahoo/yeoman-webapp
yo webappp
gulp serve
- open browser > "virtual machine IP":9000 (e.g. http://192.168.99.100:9000/)
Mount a host directory to the container
mkdir -p my-project && cd $_
docker run -it -p 9000:9000 -v $(pwd):/home/yeoman/my-project --name wa aahoo/yeoman-webapp
In windows, you may have to change
$(pwd)
to/$(pwd)
yo webapp
gulp serve
- open browser > "virtual machine IP":9000 (e.g. http://192.168.99.100:9000/)
cd my-project
docker start -i wa
gulp serve
- open browser > "virtual machine IP":9000 (e.g. http://192.168.99.100:9000/)
This image is based on aahoo/yeoman. Since both of these images are "AUTOMATED BUILD", you can see their Dockerfiles to ensure that you don't compromise your project's security.