Debugging detached docker containers
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7.2k
- Forks
- 1.7k
- Avg merge
- 13d 8h
- Merged PRs (30d)
- 2
Description
I'm having issues debugging docker containers that fail. I'm running them with the command below and finding that when something goes wrong and the container blows up, the only recourse I can see is to inspect the docker logs. However, that can have very slow turnaround time. Is there something else akin to pdb or the like?
self._container = self._docker_client.containers.run(
self._docker_image, detach=True, auto_remove=True,
ports={10080: self._port}, environment=env_vars)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the containers.run call shown in the issue and review how detached, auto-removed containers are exposed by the Python client and Docker Engine API. Determine whether a supported debugging workflow can be specified; done should be a clearly scoped feature or documented alternative for diagnosing failed containers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- devops
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100