Debugging And Docker Compose

June 15, 2020

Debugging python libraries inside a running docker container

# Find the running process
docker ps

# Execute a command inside the container
docker exec -it <container ID> bash

# Install an editor if none available
apt-get update && apt-get install -y vim

# Edit the library
vim <file>

Written by Oliver Smit. I love talking about web technologies, good design practices, optimising productivity, and rapid prototyping of projects. Check out my work on Github