Requirements about developing Hugo sites and themes.
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 hugo new site mysite
Skip this step on Windows.
Once the site was created, there might be a permission issue, we can solve it by assigning the site ownership to current user.
1sudo chown -R $USER mysite
Once site was prepared, you can either using Docker Run or Docker Compose to launch up Hugo server.