Requirements about developing Hugo sites and themes.
Become a backer or sponsor to support our work.
Please refer to Install Docker Engine.
You need to set up a Hugo site for development. If you don’t have one yet, you should create a new Hugo site first.
1docker run -v ${PWD}:/src hugomods/hugo:exts-non-root hugo new site mysite
1docker run -v ${PWD}:/src -u 1000:1000 hugomods/hugo:exts hugo new site mysite
Note
The
${PWD}
represents the current working directory.
Once site was prepared, you can either using Docker Run or Docker Compose to launch up Hugo server.