- Pull docker image to your host machine.
- Create diagram.py in workspace folder
- The 'workspace' folder will be mounted as a docker volume as defined in docker-compose.yml
- Run a bash shell against the container
sudo docker-compose run diagrams bash
- Within the container, navigate to workspace folder and generate diagram
cd /workspace
python diagram.py
- The image will appear within the host folder since the volume is mounted.