DEV Community

Discussion on: Publish your first image to Docker Hub

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