Skip to content

Multiple Python versions are installed in the same image #253

Closed

Description

@vdboor

In the Docker images, multiple Python versions can be found. For example:

Python 2.7, 3.5 and 3.6 in the python:3.6.4-stretch image:

$ docker run python:3.6.4-stretch  bash -c 'ls -d /usr/bin/python?.? /usr/local/bin/python?.? /usr/local/lib/python?.?'
/usr/bin/python2.7
/usr/bin/python3.5
/usr/local/bin/python3.6
/usr/local/lib/python2.7
/usr/local/lib/python3.5
/usr/local/lib/python3.6

Python 2.7 and 3.6 in the python:3.6.3 image:

$ docker run python:3.6.4  bash -c 'ls -d /usr/bin/python?.? /usr/local/bin/python?.? /usr/local/lib/python*'
/usr/bin/python2.7
/usr/local/bin/python3.6
/usr/local/lib/python2.7
/usr/local/lib/python3.6

Can this be fixed somehow?

Fortunately, the -slim packages seem to have one proper Python version installed.

Activity