DockerのUbuntuでヘルプが表示できない場合の対処方法

Dockerで起動したUbuntuの中では、そのままではコマンドのヘルプが表示できないののがあります。

こんな感じ。

$ man sort       
This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

To restore this content, including manpages, you can run the 'unminimize'
command. You will still need to ensure the 'man-db' package is installed.
$ git remote --help                                           
This system has been minimized by removing packages and content that are                      
not required on a system that users do not log into.                                                                        
                                                                                                                    
To restore this content, including manpages, you can run the 'unminimize'                                             
command. You will still need to ensure the 'man-db' package is installed.  

表示されるメッセージのとおりですが、DockerのUbuntuの中で以下を実行すれば、ヘルプを表示できるようになります。

$ sudo unminimize
$ sudo apt install man-db

注意:いっぱいパッケージがインストールされます。