Playing With a LED in a Raspberry Pi
Fleetingsee docker Access to Raspberry Pi GPIO Pins
docker run --device /dev/gpiomem --rm -ti "${image}"
See https://gpiozero.readthedocs.io/en/stable/
I plugged the LED
from gpiozero import LED ; led = LED(4) ; led.on()
led.on()
led.off()