I have Docker Toolbox installed on windows 8.1 and I am creating an image based on ubuntu:latest (which should be 16.04). I want to make sure that my application is indeed run on 16.04. Here is my Dockerfile:
FROM ubuntu:latest
MAINTAINER xyz [email protected]
COPY apt.conf /etc/apt/
RUN apt-get -y update
RUN apt-get -y install cmake
RUN mkdir /usr/local/
COPY folder /usr/local/
RUN mkdir /usr/local/build
CMD cd /usr/local/build
CMD cmake /usr/local/
Once the image is built, i try to run :
docker run image uname -r
But it always returns with 4.4.12 boot2docker
Now i know that boot2docker is the lightweight linux VM on top of which containers are spun on windows, however shouldn't running the image give me version of ubuntu it's running? How can i verify this?