daytonaio / daytona

The Open Source Dev Environment Manager.
https://daytona.io
Apache License 2.0
8.46k stars 778 forks source link

Add a doctor command #225

Open metcalfc opened 6 months ago

metcalfc commented 6 months ago

Is your feature request related to a problem? Please describe. There have been several times where daytona has gotten into a bad state because the config was from an old version, or Docker wasn't running, or code cli wasn't installed. These issues can be frustrating to catch and take support time.

Describe the solution you'd like We should add a doctor command (similar to brew doctor) that can run through troubleshooting checks (is docker running, is the config valid, is code cli present) and can suggest fixes, with links to docs for more info.

Additional context https://docs.brew.sh/Troubleshooting https://fig.io/user-manual/debugging/doctor

vedranjukic commented 6 months ago

Daytona is in initial development atm, so breaking changes are expected. At later stages of development we should implement schema updates. Nevertheless I think this is a good idea, since Daytona produces artefacts that can be out of sync with the application state. Let's keep this thread open for further ideas and discussion.