No exception is thrown when adding a non existing file
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7.2k
- Forks
- 1.7k
- Avg merge
- 13d 8h
- Merged PRs (30d)
- 2
Description
I have the following Dockerfile which adds a non-existing file settings/jupyter_notebook_config.py (the correct name is settings/jupyter_server_config.py). Running the docker build command throws the following error messages.
Removing intermediate container 6e8ca5bef98e
---> cacf95204098
Step 3/6 : ADD settings/jupyter_notebook_config.py /etc/jupyter/
ADD failed: file not found in build context or excluded by .dockerignore: stat settings/jupyter_notebook_config.py: file does not exist
However, building the image using docker-py doesn't throw an exception.
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
Reproduce the Dockerfile case using the missing settings/jupyter_notebook_config.py path and compare docker build with the docker-py image-build entry point. Trace how the build response is handled, then verify that a missing file produces an exception matching the daemon error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100