I want to use a docker with particular ubuntu version. I have my docker ubuntu images as:
ubuntu@ubuntu:~$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest dd6f76d9cc90 10 days ago 122MB
ubuntu 14.04 3aa18c7568fc 10 days ago 188MB
Now I want to run a docker with ubuntu 14.04:
ubuntu@ubuntu:~$ docker run -it ubuntu:14.04
root@0b004c5dc55e:/# uname -a
Linux 0b004c5dc55e 4.10.0-38-generic #42~16.04.1-Ubuntu SMP Tue Oct 10 16:32:20 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
When I check it with uname -a
I see there is still Ubuntu-16.04.
How can I run exact version of ubuntu within docker?