Skip to content

#507: check Docker host disk space before env create - #508

Merged
web7devs merged 1 commit into
mainfrom
507-docker-disk-space-check
Sep 29, 2026
Merged

web7devs merged 1 commit into
mainfrom
507-docker-disk-space-check

Conversation

@evgheni7

Copy link
Copy Markdown
Contributor

Fixes #507

  • Preflight check before creating the k3s-docker environment: runs df -Pk on Docker's data root (DockerRootDir) in a short-lived container using the k3s image, so it works for native Docker, Docker Desktop and remote DOCKER_HOST.
  • Fails when less than 10% is free (k3s taints the node with disk-pressure below 5%; extra margin covers engine image pulls).
  • If the check itself can't run, only a warning is logged.
  • Image pull moved before network creation so the check runs before anything is created.

@web7devs
web7devs self-requested a review September 29, 2026 14:30
@web7devs
web7devs merged commit aebdc5e into main Sep 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 bug(environment): env create ignores low disk space on Docker host

2 participants