Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 1.2 KB

README.md

File metadata and controls

46 lines (29 loc) · 1.2 KB

jekyll-docker

Docker Repository on Quay

Play jekyll without install ruby and jekyll on your computer

docker pull quay.io/omd/jekyll

Create a new site

Create a new site called my-awesome-site then go to this folder and run:

$ cd my-awesome-site
$ docker run -it --rm -v $(pwd):/omd quay.io/omd/jekyll jekyll new .

The site was created.

$ my-awesome-site ls
404.html       Gemfile        Gemfile.lock   _config.yml    _posts         about.markdown index.markdown
$ my-awesome-site

Build and serve the site

$ pwd
/home/xxxxx/my-awesome-site
$ docker run -it --rm -p 4000:4000  -v $(pwd):/omd quay.io/omd/jekyll sh -c "bundle install; jekyll serve --host=0.0.0.0 --livereload"

open the browser and go to http://127.0.0.1:4000/ and we will see:

image

Welcome to subcribe MY WeChat official account

欢迎大家订阅我的公众号,会不定期分享一些容器,网络,和编程相关技术文章。

QR