[Feature Request] Provide details when throwing errors
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 694
- Forks
- 304
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 28
Description
Currently, when trying to launch my Windows Container from Docker, HCS just throws:
docker: Error response from daemon: container 46a5305c0e305a9b5e7ef5fd746478ea9211b61d136fc7a08b8e4468939514a7 encountered an error during hcs::System::CreateProcess: c:\windows\system32\cmd.exe: failure in a Windows system call: The user name or password is incorrect. (0x52e)
[Event Detail: Provider: 00000000-0000-0000-0000-000000000000].
When I'm trying to mount a bind-mount to the same container, HCS just throws:
docker: Error response from daemon: hcs::CreateComputeSystem cf0c577360d731d6e09be5c1eec629751c3891eba85353163c0978cc0c293054: The request is not supported.
There is no context provided, no stack trace … nothing. So, it's impossible to research and find a remedy for the issue.
Please add a function to the HCS API providing details about the error thrown (parameters, stack trace etc.), so the Docker engine is able to output these. It will lower the amount of GitHub and StackOverflow issues and lower your burdon to handle these.
see these GitHub issues:
Contributor guide
No contributing guide indexed for this repository
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 by tracing the HCS API paths represented by hcs::System::CreateProcess and hcs::CreateComputeSystem, using the reported Docker errors as examples. Determine how error details could be exposed to the Docker engine, then define tests that verify parameters or other diagnostic context are returned for these failures.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go
- Domain
- api, operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100