This article is a mirror article of machine translation, please click here to jump to the original article.

View: 9331|Reply: 2

docker container to view the container linux version

[Copy link]
Posted on 9/27/2018 4:57:31 PM | | | |
docker container to view the container linux version

Sometimes you need to log in to the container to do something, and then you need to look at the version of the container system, so a command can be completed.

Correct posture:

cat /etc/issue

Wrong pose:

cat /proc/version or uname -a to find the host system.



Doubt, executing the uname -a command, the host and docker containers return different information.

The uname command displays the system name, node name, version, and machine ID

Is everything the same except for the different node names???

uname -n is the query node name.





Previous:Linux rpm command explained in detail
Next:How to get the IP address of a docker container
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com