mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 16:27:33 -10:00
With no init system (smolvm, Docker's containers), a launch that changed Docker's proxy settings killed whatever process /run/docker.pid named. /run outlives a stop there, so that could be another process that took the pid. The restart now kills the pid only when /proc/PID/comm is dockerd, as services.sh checks, and deletes the pid file and /run/docker before dockerd starts, as a boot would. Tests: e2e smolvm, on the Alpine docker-layer VM with network policy (the base whose /etc/conf.d/docker the restart reads): a stale pid file naming another process and a left-over run folder, then a launch that restarts Docker's daemon; the other process lives, the run folder is new and dockerd runs. It fails on the code before (the other process gone). Co-Authored-By: Claude Opus 5.5 <[email protected]>