• sturlabragason@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    To pull a Docker container with a specific Python version using a Bash one-liner, you can use the following command:

    docker pull python:versiom

    Replace version with the specific version of Python you want, like 3.8, 3.9, etc. For example, if you want to pull a container with Python 3.8, use:

    docker pull python:3.8

    This will pull the official Python image with the specified version from Docker Hub.