I can’t get man
to work in an Alpine Linux Docker container.
Pull Alpine Linux and start a container.
docker pull alpine:latest
docker run -t -i alpine /bin/ash
Update repository indexes from all remote repositories.
apk update
Install man
and man-pages
.
apk add man man-pages
Install a package and its documentation.
apk add curl
apk add curl-doc
Try to view the man pages.
/ # man curl
/usr/share/man/mandoc.db: No such file or directory
man: outdated mandoc.db lacks curl(1) entry,
consider running # makewhatis /usr/share/man
more: -s: No such file or directory
/ #
What?
Update
Following @EugenMayer’s advice to add mdicml-apropos
, I can get curl --manual
to work but not man curl
. Unfortunately, gnupg --manual
doesn’t work at all. This behaviour is inconsistent and unexpected.