DEV Community

Publish your first image to Docker Hub

Rushal Verma on July 09, 2017

As you are familiar with Docker from my previous post. Let dive in to explore more. Now you know how to run a container and pull an image, now w...
Collapse
 
kakty3 profile image
kakty3

It is better to explicitly set docker image tag, e.g:

FROM python:3.6
Enter fullscreen mode Exit fullscreen mode

Otherwise, it is unpredictable, which image version will be base.

Collapse
 
rusrushal13 profile image
Rushal Verma

Thank you for correcting me. I updated the post :)

Collapse
 
rusrushal13 profile image
Rushal Verma • Edited

Every time Docker uses the latest base image. Here it is python 2.7 base image, as it is official, You can run the container and can check it ;)
BTW thanks for your feedback

Collapse
 
kakty3 profile image
kakty3

No, python:latest stays for python:3.6, you can see it on Dockehub: library/python