Docker
ℹ️ The examples here use a mock image wmax641/test-app:latest
Operations
Override / keep running
Useful to keep container running for troubleshooting
# Simple drop into shell via override
docker run -it --entrypoint=/bin/sh wmax641/test-app:latest
# Override entrypoint into `tail -f /dev/null`
docker run -d --entrypoint tail wmax641/test-app:latest -f /dev/null
Get shell into container
Get Logs
For exited instances - look up history (docker ps -a
) to find container name
Quick multi-kill instances
Change grep
to match the instances you want to kill