有时候需要登陆容器搞点事情,这时候需要看容器系统的版本,那么一条命令就能完成。
cat /etc/issue
cat /proc/version
或 uname -a
,这样查到的是宿主机的系统。
“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” – Tom Cargill
标 题:docker容器中查看容器linux版本