Debugging And Docker Compose

Updated April 7, 2024
Created 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>

Comments?