Reputation: 86107
I'm trying to figure out the version of Ubuntu being used in a docker container.
This Verfiy the version of ubuntu running in a Docker container mentions cat /etc/lsb-release
which gives:
cat: can't open '/etc/lsb-release': No such file or directory
and uname -r
gives:
3.13.0-119-generic
FWIW, uname -a
gives:
Linux <container id> 3.13.0-119-generic #166-Ubuntu SMP Wed May 3 12:18:55 UTC 2017 x86_64 Linux
Any ideas what version of Ubuntu it might be? Or how else I can find this out?
Upvotes: 0
Views: 82
Reputation: 32176
Just docker history --no-trunc your_image
will show, among other things the FROM ...
line
Upvotes: 0