Snowcrash
Snowcrash

Reputation: 86107

Version of Ubuntu being used in a docker container

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

Answers (2)

kstromeiraos
kstromeiraos

Reputation: 5027

Try lsb-release -a or cat /etc/issue

Upvotes: 1

user2915097
user2915097

Reputation: 32176

Just docker history --no-trunc your_image will show, among other things the FROM ... line

Upvotes: 0

Related Questions