Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install man pages on an ubuntu docker image?

I use the following Dockerfile to build an image and start a container. But once I am in the container, I still can not find manpages. Does anybody know how to solve this problem?

$ cat Dockerfile 
FROM ubuntu
RUN apt -y update && apt -y upgrade
RUN apt-get -y install build-essential
RUN apt-get -y install vim
RUN apt-get -y install man
RUN apt-get -y install gawk
RUN apt-get -y install mawk

$ man man
No manual entry for man
See 'man 7 undocumented' for help when manual pages are not available.
$ find /usr/share/man /usr/local/share/man  -type f
like image 524
user1424739 Avatar asked Jan 11 '19 19:01

user1424739


People also ask

What command can be used to install the man pages?

To install man pages use the yum command or dnf command as follows on a CentOS 6/7/8/9.

Where are man pages installed?

The man pages are stored in /usr/share/man.

How do I run a Dockerized project?

The easiest way to deploy a Dockerized application on a remote server is to transfer the application's image with docker pull and then use docker run . This runs the application in a container similar to how you'd do it in your development environment.


1 Answers

There is a easier way to enable the MAN command.

In terminal, just execute the command below:

unminimize

It will ask if you like to continue [Y/n] Just press:

Y

It will take a while to finish all the processing.

After that, test this:

man man

Simple as that

Thanks to @kazushi

like image 194
PedroPK Avatar answered Oct 22 '22 13:10

PedroPK