[Feature Request] Provide details when throwing errors

Aperta
#2,127 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
docker, go

Direzione di ricerca

Inizia tracciando i percorsi dell'API HCS rappresentati da hcs::System::CreateProcess e hcs::CreateComputeSystem, usando come esempi gli errori Docker segnalati. Determina come i dettagli degli errori potrebbero essere esposti al motore Docker, quindi definisci test che verifichino che per questi errori vengano restituiti i parametri o altro contesto diagnostico.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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:

Lingua principale
Go
Stelle
694
Fork
304
Merge medio
1g 19h
PR unite (30g)
28

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/hcsshim

Tutte le issue di microsoft/hcsshim

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.