- run:
docker run -it --rm -p 5000:5000 aahoo/yeoman-polymer
yo polymer
gulp serve
- open browser > "virtual machine IP":5000 (e.g. http://192.168.99.100:5000/)
Mount a host directory to the container
mkdir -p my-project && cd $_
docker run -it -p 5000:5000 -v $(pwd):/home/yeoman/my-project --name yo aahoo/yeoman-polymer
- In windows, you may have to change
$(pwd)
to/$(pwd)
yo polymer
gulp serve
- open browser > "virtual machine IP":5000 (e.g. http://192.168.99.100:5000/)
docker start -i yo
gulp serve
- open browser > "virtual machine IP":5000 (e.g. http://192.168.99.100:5000/)