Skip to content

Conversation

@morey-tech
Copy link

@morey-tech morey-tech commented Dec 21, 2025

Summary

Update s6-overlay from 3.1.6.2 to 3.2.1.0 to enable running Home Assistant containers as non-root in Kubernetes/OpenShift environments.

Problem

Home Assistant containers fail to start on OpenShift (and other Kubernetes distributions that enforce non-root) with:

s6-chown: fatal: unable to chown /run: Operation not permitted

OpenShift runs containers with random UIDs (e.g., uid=1000780000) that cannot chown directories.

Solution

s6-overlay v3.2.0 added:

"tolerance for unprivileged containers with suboptimal permissions in /run (which happens a lot in Kubernetes)"

This release introduces S6_YES_I_WANT_A_WORLD_WRITABLE_RUN_BECAUSE_KUBERNETES environment variable support that allows s6-overlay to boot with world-writable /run owned by uid 0.

References

s6-overlay v3.2.0 adds tolerance for unprivileged containers with world-writable /run, enabling containers to run as non-root in Kubernetes/OpenShift environments.

This adds support for the S6_YES_I_WANT_A_WORLD_WRITABLE_RUN_BECAUSE_KUBERNETES environment variable which allows s6-overlay to boot when /run is owned by uid 0 but the container runs as a different user.

Fixes running Home Assistant on OpenShift where containers are assigned random UIDs and cannot chown /run.

Ref: just-containers/s6-overlay#427
Copy link

@home-assistant home-assistant bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @morey-tech

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@home-assistant
Copy link

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@home-assistant home-assistant bot marked this pull request as draft December 21, 2025 21:56
@morey-tech morey-tech marked this pull request as ready for review December 21, 2025 21:58
@morey-tech morey-tech changed the title Update s6-overlay to v3.2.0.2 for Kubernetes non-root support Update s6-overlay to 3.2.1.0 for Kubernetes non-root support Dec 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant