我正在尝试找出在docker容器中使用的Ubuntu的版本。
这个Verfiy the version of ubuntu running in a Docker container提到了cat /etc/lsb-release,它提供了:
cat: can't open '/etc/lsb-release': No such file or directoryuname -r给出了:
3.13.0-119-genericFWIW,uname -a提供:
Linux <container id> 3.13.0-119-generic #166-Ubuntu SMP Wed May 3 12:18:55 UTC 2017 x86_64 Linux你知道它是什么版本的Ubuntu吗?要不我怎么才能知道呢?
发布于 2017-06-26 19:27:52
尝试使用lsb-release -a或cat /etc/issue
发布于 2017-06-26 19:26:56
除了其他内容之外,只需要docker history --no-trunc your_image就可以显示FROM ...行
https://stackoverflow.com/questions/44758578
复制相似问题