acoustic-carpenter-78188
05/07/2026, 5:49 AM_devbox.py with a small _run_docker helper that converts non-zero exits into click.ClickException with stderr details, instead of bubbling raw CalledProcessError up the stack.
• Use unlink(missing_ok=True) and translate PermissionError on the stale k3s kubeconfig into an actionable ClickException.
Closes
• FLYTE-SDK-D — docker volume ls non-zero exit reported as raw subprocess crash
• FLYTE-SDK-1H — PermissionError unlinking /tmp/.kube/kubeconfig
Test plan
• New unit tests in tests/cli/test_devbox.py cover the failure paths for _ensure_volume, _container_is_running, _container_is_paused.
• Existing devbox tests still pass.
• Manual: flyte start devbox with docker stopped → friendly message; with a root-owned /tmp/.kube/kubeconfig → friendly message.
🤖 Generated with Claude Code
flyteorg/flyte-sdkacoustic-carpenter-78188
05/08/2026, 6:36 PM