Introduction

Introduce the details of Hugo Docker images.

Base Image

All images are Alpine based.

Default Working Directory

The default working directory is /src.

User

Default User

ImagesDefault user
Without non-rootroot
With non-roothugo

The hugo User

Regardless of whether the default user for the image is root or not, all images have a user named hugo, whose owns the /src.

NameUIDGroup NameGID
hugo1000hugo1000

Commands

Default Command

The default command is hugo help (previously hugo env) since images tagged with 0.136.2, which prints help and then exits.

Command Aliases

If the command is not a system command inside a container, then it will be treat as a Hugo subcommand.

ExampleCommand
serverhugo server
versionhugo version

Server Binding Interface

The hugo server/server will bind the 0.0.0.0 by default, unless the --bind flag is set.

Default Shell

Since images are Alpine based, the default shell is ash (/bin/sh).