Coder.comC
Coder.com2y ago
13 replies
Ottobus

Docker in workspaces and volumes

Hello,

I'm running container with Sysbox in Kubernetes based workspaces. I have persisted with Kubernetes PV the workspace /home/coder and /var/lib/docker directory. Developers run container inside their workspace with --rm option (docker run --rm) so while restarting the coder workspace, the nested developers container should be deleted. This working well except for anonymous volumes that are created with the developers container. While i'm restarting the workspace, and checking the /var/lib/docker/volumes the anonymous still there. These lead to full fill the Kubernetes PV. It's look like a problem of gracefull shutdown of the workspace that running docker container.

Is anyone as encounter the same problem ?
Was this page helpful?