I am working with two docker images of tensorflow (latest and latest-gpu tags):
FROM tensorflow/tensorflow:latest-gpu
and:
FROM tensorflow/tensorflow:latest
In order to not have surprises in the future, I would like to set the version of these two images.
On docker hub, I can't find this information in the tags pages: for example, latest
would correspond to the 1.8.0-gpu
tag.
Do you know if and where I can find this information?
Thank you,
Alexandre
Do you know if and where I can find this information?
Just to make something clear. Docker images can have multiple tags around them. Closer inspection of said images reveal that they have single tag only (just latest
) so they are not tagged additionally. Thus said from images themselves you can't deduct which tensorflow version they relate to.
However, you do have other option:
Easiest way to make sure you use correct 'versioned' tensorflow image instead of latest
is to actually start latest image:
docker run -it --rm -p 8888:8888 tensorflow/tensorflow:latest
or
nvidia-docker run -it -p 8888:8888 tensorflow/tensorflow:latest-gpu
then, navigate to given url link in format:
http://localhost:8888/?token=XXXX...
and in jupyter create new notebook File->New Noteboot->Python2
and there check tensorflow version by giving:
import tensorflow as tf
print tf.VERSION
or
import tensorflow as tf
tf.__version__
Then run it. Note that in my case for latest
tag response was: 1.8.0
, however if you pulled latest
image a while ago and didn't update in the meantime (or reading this in the future) version you get can be different than this.
1.8.0
and 1.8.0-gpu
respectively (since I was offered Python2 from latest
tag).latest
.