arrow_back
Back

Installation

Andrew Dorokhov Andrew Dorokhov schedule 1 min read
menu_book Table of Contents

Hugo has a website and documentation. So the smartest way to install it is to follow instructions in the “open_in_new Install Hugo ” article.

But I like using Docker.

Commands

Build a website:

hugo
docker run --rm -it \
  -v "$(pwd):/src" \
  -u $(id -u):$(id -g) \
  klakegg/hugo

Run a server:

hugo server
docker run --rm -it \
  -v "$(pwd):/src" \
  -u $(id -u):$(id -g) \
  -p 1313:1313 \
  klakegg/hugo \
  server

Check version:

hugo version
docker run --rm -it \
  -v "$(pwd):/src" \
  -u $(id -u):$(id -g) \
  klakegg/hugo \
  version
code

Need Help with Development?

Happy to help — reach out via the contacts or go straight to my Upwork profile.

work View Upwork Profile arrow_forward
Next Article

Skeleton

arrow_forward