Debugging And Docker Compose
Updated May 26, 2024Created 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>