Skip to content

yoshikazum/docker-hexo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

from dockerhub

Quick Start

$ docker pull yoshikazum/hexo

$ docker run -d -p 4000:4000 yoshikazum/hexo

# or if you want mount volume your blog folder
$ mkdir blog
(Linux)$ docker run -d -p 4000:4000 -v `pwd`/blog:/blog yoshikazum/hexo
(Windows)PS> docker run -d -p 4000:4000 -v ${pwd}/blog:/blog yoshikazum/hexo

After a few minites Hexo server will launch.
Open http://localhost:4000/ in your browser.

And read Hexo operations.

from Github

Quick Start

$ docker-compose build

$ docker-compose up -d

In your ./blog the folder, hexo initialize folder. You can see variable files for hexo.

After a few minites Hexo server will launch.
Open http://localhost:4000/ in your browser.

Hexo operations

exec docker

docker exec -it {container} /bin/ash

In docker-hexo_hexo container.

/blog # hexo help

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages