Score:-3

Why my ubuntu docker image does not have python?

cn flag

I have pull amd64/ubuntu:18.04 When I run the container and I am inside I do python -V and it says

bash: python: command not found

Why is this so? I thought ubuntu came with python installed

guiverc avatar
cn flag
[Ubuntu 18.04 LTS has reached the end of it's *standard* support life](https://fridge.ubuntu.com/2023/05/13/extended-security-maintenance-for-ubuntu-18-04-bionic-beaver-begins-31-may-2023/) thus is now off-topic here unless your question is specific to helping you move to a supported release of Ubuntu. Ubuntu 18.04 ESM support is available, but not on-topic here, see https://askubuntu.com/help/on-topic See also https://ubuntu.com//blog/18-04-end-of-standard-support
cn flag
The environment we use at work uses this. I am aware of what you wrote and I am getting the necessary arguments to move our project to a supported release of ubuntu. But I need to understand this first.
Score:2
us flag

Python is not necessary to run a base image of Ubuntu.

You can always install python with

sudo apt install python3-all

In Ubuntu 20.04+, you can install the package python-is-python3 to call python3 with the command python.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.