Public | Automated Build

Last pushed: 2 days ago
Short Description
A containerized version of the Python IDE Thonny
Full Description


A containerized version of the Python IDE Thonny


You can either build from source, or pull latest version from dockerhub.

Download from dockerhub

docker pull starfox/thonny

Build from source

git clone
cd thonny
docker build -t starfox/thonny .


Run in one-time container

Running thonny needs access to local XServer

xhost +
docker run -it --rm -e DISPLAY=$DISPLAY  -v /tmp/.X11-unix:/tmp/.X11-unix starfox/thonny 
xhost -

Beware: Running thonny this way will remove all things you have created in Thonny, once it is closed. If you want to persist your changes, make sure to use a persisted container.

Run as a persisted container

Create persisted container named 'thonny'

Create a named docker container, which will keep the changes and files you create using thonny inside the container.

# in case you have an existing container named 'thonny', you need to cleanup first. Attention: this will delete everything stored in that container!
# docker rm thonny
docker create -it -e DISPLAY=$DISPLAY  -v /tmp/.X11-unix:/tmp/.X11-unix --name thonny starfox/thonny

Start persisted container

xhost +
docker start thonny
xhost -

Open issues

  1. Get rid of xhost + using this technique
Docker Pull Command
Source Repository