0

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?

2
  • maybe use this stack: askubuntu.com Commented Jun 26, 2017 at 11:25
  • Stack Overflow is a site for programming and development questions. This question appears to be off-topic because it is not about programming or development. See What topics can I ask about here in the Help Center. Perhaps Super User or Unix & Linux Stack Exchange would be a better place to ask. Commented Jun 26, 2017 at 19:38

2 Answers 2

1

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

Sign up to request clarification or add additional context in comments.

Comments

0

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.