- Install Docker Toolbox
- Startup Docker Terminal
- Use Putty to login 192.168.99.100 docker/tcuser (Do not use the original windows Bash, it will cause problem when using $(pwd) in docker --volume parameter)
- cd /c/Users/yourname/Document/jekyll_site
- jekyll new .
docker run --rm --label=jekyll --volume=$(pwd):/srv/jekyll -it -p 0.0.0.0:4000:4000 jekyll/jekyll:pages jekyll new .
5. jekyll s --force_polling
6. Browse the page in host browser with http://192.168.99.100:4000
沒有留言:
張貼留言