Esptool: execute in Docker

Hey there,

i would like to flash my Toniebox via the legacy-method. I’m using proxmox to host docker in an LXC.

I’ve set up an device passthrough to the USBtoUART-Adapter.

After that i opend the console of my LXC and entered the teddycloud docker:

docker exec -it teddycloud bash

and installed python:

apt install python3

and installed esptool:

apt install python3-pip python3.12-venv python3-wxgtk4.0 python3-full
mkdir esptool
python3 -m venv ~/esptool/
~/esptool/bin/python3.12 ~/esptool/bin/pip install esptool

But now i can’t execute the command:

esptool.py -b 921600 read_flash 0x0 0x800000 tb.esp32.bin

cause it says: “bash: esptool.py: command not found”

What am I doing wrong?

Thanks for your helping.