방금 뭔가 빠르게 테스트하고 싶었습니다. 도커 컨테이너를 실행하고 실행중인 버전을 확인하고 싶었습니다.
$ docker run -it ubuntu
root@471bdb08b11a:/# lsb_release -a
bash: lsb_release: command not found
root@471bdb08b11a:/#
그래서 설치를 시도했습니다 ( here 제안 ).
root@471bdb08b11a:/# apt install lsb_release
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package lsb_release
root@471bdb08b11a:/#
왜 이것이 작동하지 않는지 아는 사람이 있습니까?
답변
lsb_release가 설치되지 않은 것 같습니다.
당신은 그것을 통해 설치할 수 있습니다
apt-get update && apt-get install -y lsb-release && apt-get clean all
희망이 도움이됩니다;)