`container.put_archive` fails with a timeout when `path` doesn't exist in container
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7.2k
- Forks
- 1.7k
- Avg merge
- 13d 8h
- Merged PRs (30d)
- 2
Description
When calling container.put_archive with a path that doesn't exist in the container the operation fails only after the defined timeout duration, instead of immediately with an informative message.
Steps to reproduce:
container.put_archive('/i/dont/exist', data)
docker-py 4.2.0
Python 3.7.3
docker 19.03.5
MacOS 10.15.4 (Catalina)
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 at the container.put_archive entry point and reproduce the call with a nonexistent path using the versions listed in the issue. Trace how the timeout is surfaced and add coverage for this case; done means it fails immediately with an informative message rather than waiting for the timeout.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100