# Docker images with different Python versions

**URL:** <https://discuss.pytorch.org/t/docker-images-with-different-python-versions/139445>\
**Category:** deployment\
**Created:** [December 15, 2021, 12:17pm UTC](https://discuss.pytorch.org/t/docker-images-with-different-python-versions/139445 "2021-12-15T12:17:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![caniko](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/caniko/32/35077_2.png) [@caniko](https://discuss.pytorch.org/u/caniko)\
**Post date:** [December 15, 2021, 12:17pm UTC](https://discuss.pytorch.org/t/docker-images-with-different-python-versions/139445/1 "2021-12-15T12:17:15Z")

</div>

The tags in [Docker Hub Pytorch](https://hub.docker.com/r/pytorch/pytorch/tags) are not explicit in their Python versioning. I assume they are all Python 3.7. Would it be possible to build images for every minor version from Python 3.7 and up? Not sure about the patches, build for every patch?

There is also a lack of explanatory text in the [main page](https://hub.docker.com/r/pytorch/pytorch/). Please add this also.

---

<div class="post-metadata">

**Author:** ![marksaroufim](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/marksaroufim/32/36747_2.png) [@marksaroufim](https://discuss.pytorch.org/u/marksaroufim)\
**Post date:** [February 10, 2022, 10:18pm UTC](https://discuss.pytorch.org/t/docker-images-with-different-python-versions/139445/2 "2022-02-10T22:18:03Z")

</div>

Not ideal but the information is here [https://github.com/pytorch/pytorch/blob/master/.circleci/docker/build.sh#L78](https://github.com/pytorch/pytorch/blob/master/.circleci/docker/build.sh#L78)

cc: @malfet

---

<div class="post-metadata">

**Author:** ![barakugav](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/barakugav/32/71912_2.png) [@barakugav](https://discuss.pytorch.org/u/barakugav)\
**Post date:** [July 21, 2025, 4:25am UTC](https://discuss.pytorch.org/t/docker-images-with-different-python-versions/139445/3 "2025-07-21T04:25:16Z")

</div>

As far as I understand it, i think it was moved to here [pytorch/docker.Makefile at main · pytorch/pytorch · GitHub](https://github.com/pytorch/pytorch/blob/main/docker.Makefile)
