본문 바로가기
개발/Shell

[Docker] Ubuntu20.04에서 man 사용하기

by 상5c 2021. 7. 7.

Docker 명령으로 우분투 설치, 실행

docker run -it --name dubuntu ubuntu:20.04 /bin/bash
  • ctrl + p, ctrl + q를 차례로 누르면 빠져나올 수 있다.

 

man apt 명령어를 사용하면 이런 안내 메시지가 나온다.

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는 사용자가 로그인하는 환경이 아니기 때문에  불필요한 패키지는 삭제되었다는 내용이며 복구하려면 unminize 명령을 사용하라고 나온다. 이 명령을 사용하려면 'man-db' 패키지를 설치해야 한다.

# apt install man-db
# unminimize

y를 입력하여 완료하면 man 명령어가 사용 가능해진다.