In container,I can't use man
Posted anyux
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了In container,I can't use man相关的知识,希望对你有一定的参考价值。
in container,I can‘t use man in ubuntu image ,by search i find this link to slove the problem
cp /etc/dpkg/dpkg.cfg.d/excludes /etc/dpkg/dpkg.cfg.d/excludes.bak apt update && apt-get install -y man manpages-posix
how to use man in centos image? I find this link
remove "tsflags=nodocs" from "/etc/yum.conf"
yum install -y man man-pages
this link explanation it:
Package documentation
By default, the CentOS containers are built using yum‘s
nodocs
option, which helps reduce the size of the image. If you install a package and discover files missing, please comment out the linetsflags=nodocs
in/etc/yum.conf
and reinstall your package.
以上是关于In container,I can't use man的主要内容,如果未能解决你的问题,请参考以下文章
UnicodeEncodeError: 'gbk' codec can't encode character 'ufeff' in position 0: i(
UnicodeEncodeError: 'gbk' codec can't encode character 'ufffd' in position 3: i(
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not i
14 python读取文件时出现UnicodeDecodeError: 'gbk' codec can't decode byte 0xb7 in position 26: i
解决UnicodeDecodeError: 'ascii' codec can't decode byte 0xba in position 31: ordinal not i