Introduce the details of Hugo Docker images.
Become a backer or sponsor to support our work.
All images are Alpine based.
The default working directory is /src
.
Images | Default user |
---|---|
Without non-root | root |
With non-root | hugo |
hugo
UserRegardless of whether the default user for the image is root or not, all images have a user named hugo
, whose owns the /src
.
Name | UID | Group Name | GID |
---|---|---|---|
hugo | 1000 | hugo | 1000 |
The default command is hugo help
(previously hugo env
) since images tagged with 0.136.2
, which prints help and then exits.
If the command is not a system command inside a container, then it will be treat as a Hugo subcommand.
Example | Command |
---|---|
server | hugo server |
version | hugo version |
The hugo server
/server
will bind the 0.0.0.0
by default, unless the --bind
flag is set.
Since images are Alpine based, the default shell is ash
(/bin/sh
).