daytonaio / daytona

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

Workspace state out of sync after host machine restart #678

Open vedranjukic opened 5 months ago

vedranjukic commented 5 months ago

Describe the bug The workspace state is not updated after the Docker host machine running the workspaces is restarted. This exposes the issue of handling the workspace state that must be revisited.

To Reproduce Steps to reproduce the behavior:

  1. Create a workspace using the local docker provisioner.
  2. Restart the host machine.
  3. List the workspaces
  4. The workspace state will show running but the container is stopped.

Expected behavior The workspace state should show stopped.

Tpuljak commented 5 months ago

Just a reproduction note. This can also be achieved if the user uses the Docker provider and stops the project container with the Docker CLI (not with daytona stop).

The same applies to all providers. If the user manages the resources without going through Daytona, state will fall out of sync and we should address that.