dstack icon indicating copy to clipboard operation
dstack copied to clipboard

`--keep-container` leads to `no space left on device`

Open peterschmidt85 opened this issue 1 year ago • 4 comments

Steps to reproduce

  1. Add an instance with dstack pool add-ssh
  2. Run multiple runs

Actual:

Cannot create container. Error: Failed to run docker pull or docker create: Cannot create dir for runner: mkdir
/root/.dstack/runners/20240518-152340: no space left on device Check CLI and server logs for more details.

Expected:

Old containers should stay on the instance.

Question: Why do we use --keep-container?

peterschmidt85 avatar May 18 '24 15:05 peterschmidt85

@TheBits Any particular reason why we keep container?

peterschmidt85 avatar May 21 '24 19:05 peterschmidt85

@peterschmidt85, the last container should be kept for debugging purposes. There is no good reason to keep all the containers – the previous container should be deleted when a new container is run.

r4victor avatar May 22 '24 11:05 r4victor

This issue is stale because it has been open for 30 days with no activity.

peterschmidt85 avatar Jun 22 '24 01:06 peterschmidt85

This bug is also relevant for VM-based cloud backends, not only add-ssh

jvstme avatar Jun 27 '24 09:06 jvstme

This issue is stale because it has been open for 30 days with no activity.

peterschmidt85 avatar Jul 28 '24 01:07 peterschmidt85