Skip to content

feat: add rootless Podman starter template and EKS Auto Mode guidance - #30804

Merged
cjfit merged 14 commits into
mainfrom
cedric/docs-1277-docker-in-workspaces-eks-auto-mode-now-supports-rootless
Nov 3, 2026
Merged

cjfit merged 14 commits into
mainfrom
cedric/docs-1277-docker-in-workspaces-eks-auto-mode-now-supports-rootless

Conversation

@cjfit

@cjfit cjfit commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • EKS Auto Mode supports kernel sysctls via the NodeClass advancedCompute field since 2026-10-01 (AWS announcement), so rootless Podman no longer requires a separate managed node group; document the custom NodeClass recipe and the idsPerPod requirement for hostUsers: false pods
  • Document native overlay storage (real-filesystem graph root + clearing the image's mount_program pin), which removes the /dev/fuse device plugin dependency on kernel 5.13+
  • Add a "Nested container engines" section: one level of nesting is supported; the dev container docker-in-docker feature is not, with docker-outside-of-docker as the documented alternative
  • Add the kubernetes-podman-rootless starter template (coder templates init --id kubernetes-podman-rootless):
    • persistent /home/coder volume (fs_group_change_policy = "OnRootMismatch"), so repos, images and build cache survive restarts
    • startup script fails with the Podman log when the API socket doesn't start
    • kubernetes_pod_v1, pinned to amd64 (the image is amd64-only)

Refs DOCS-1277. Related follow-up: DOG-74.

Testing

  • 2026-10-14, EKS Auto Mode v1.37 sandbox: rootless Podman on pure Auto Mode nodes with native overlay, including builds with cache mounts, Testcontainers-style Postgres, and the Docker-compatible API socket
  • 2026-11-02, same cluster, starter template at 0227e04 on a 20 GiB gp3 home volume:
    • ext4 home, overlay driver with native overlay diff, graph root on the volume
    • podman run, classic docker build via the agent's DOCKER_HOST, Docker API socket
    • after stop/start: home files, all images, and subuid-owned layer files (101233:101233 on disk, 1234:1234 in the container) intact; built image runs without a rebuild
  • Fail-fast startup path tested with a stub podman only (exit 1, prints the newuidmap error)
  • terraform validate (no deprecation warnings), markdownlint, CI gen and lint-docs

🤖 Generated with Claude Code

cjfit and others added 2 commits October 14, 2026 14:15
EKS Auto Mode supports kernel sysctls through the NodeClass
advancedCompute field since October 2026, so rootless Podman no longer
requires a separate managed node group. Document the NodeClass
configuration, native overlay storage setup, and the one-level nesting
limitation with the docker-outside-of-docker alternative.

Refs DOCS-1277

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Oct 14, 2026

Copy link
Copy Markdown

DOCS-1277

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Docs preview

Check off each page once it's been reviewed. If a page changes in a later push, its checkbox clears automatically so it gets a fresh look. Pages not yet wired into the docs navigation aren't listed here.

@cjfit
cjfit marked this pull request as ready for review October 14, 2026 21:44
@cjfit
cjfit requested a review from nickvigilante as a code owner October 14, 2026 21:44
@cjfit
cjfit requested a review from droopy4096 October 14, 2026 21:46

@nickvigilante nickvigilante left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I did a manual pass and found some minor grammatical and mechanical things, and then Coder Agents also interleaved some feedback in there, too. Otherwise, LGTM!

Co-authored-by: Nick Vigilante <nickvigilante@users.noreply.github.com>
@cjfit

cjfit commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator Author

I'm realizing that the accompanying template should also be added for these docs to be more helpful to end users. I'm working on this now.

@cjfit
cjfit marked this pull request as draft October 15, 2026 16:12
cjfit and others added 3 commits October 15, 2026 09:27
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t setup

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cjfit
cjfit marked this pull request as ready for review October 15, 2026 20:47
cjfit and others added 2 commits October 15, 2026 13:52
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-supports-rootless' of https://github.com/coder/coder into cedric/docs-1277-docker-in-workspaces-eks-auto-mode-now-supports-rootless
@cjfit

cjfit commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator Author

@nickvigilante nickvigilante left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM docs-wise! If you want, I can have an agent review the code, just let me know 👍

@droopy4096 droopy4096 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The docs changes read well, and Nick's points are addressed. Two notes on the new starter template, inline.

🤖 Claude on behalf of Dmytro Makovey

@nickvigilante nickvigilante left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I reviewed the docs claims and the new kubernetes-podman-rootless starter at 00b0c9d.
The EKS Auto Mode and native overlay guidance checks out.
The inline comments cover two template issues and some smaller docs fixes.

Before merge

  • The branch conflicts with main in two files.
    In docker-in-workspaces.md, only the Auto Mode paragraph conflicts, because #30699 reflowed it, so keep this PR's version.
    docs/reference/cli/templates/init.md is generated and #30879 changed its table header, so run make gen after merging.
  • This PR adds a starter template that ships in the binary and appears in coder templates init, so the title type is probably feat:.
    scripts/release/generate_release_notes.sh sorts entries by type, so a docs: title lists the template under Documentation instead of Features.
    Earlier starter templates used feat: (#24904, #18741).
  • +1 to @droopy4096's kubernetes_pod_v1 comment.
    terraform validate with hashicorp/kubernetes v3.4.0 warns Deprecated; use kubernetes_pod_v1.

What I verified

  • The AWS Node Class docs match the advancedCompute.kernel.sysctl and kubelet.idsPerPod paths, the multiple-of-65536 rule, and the requirement to set user.max_user_namespaces on the same NodeClass.
    AWS's examples also use unquoted numeric sysctl values.
  • With the PR's storage.conf override, an ext4-backed graph root, and no /dev/fuse, Podman 5.7 in codercom/example-podman:ubuntu uses the overlay driver with native overlay diff.
  • In a 65,536-ID user namespace, the image's coder:100000:65536 subuid range fails to map, which matches the idsPerPod paragraph.
  • The image ships the real Docker CLI (29.9 with buildx and Compose v5), not a podman alias.
    A plain docker build against the Podman socket fails while trying to start BuildKit, so DOCKER_BUILDKIT=0 is needed.
  • The agent's dev container Up call doesn't pass --buildkit (agent/agentcontainers/devcontainercli.go).
  • The relative links resolve, and terraform fmt is clean.

What I couldn't verify

  • Running containers and classic builds through Podman.
    My test environment is itself inside a limited user namespace, where Podman's /proc mount fails, so this relies on your EKS validation.
  • The AppArmor annotation.
    The EKS Auto Mode validation doesn't cover AppArmor hosts such as GKE or Ubuntu nodes, which is where the annotation matters.

Follow-up outside this PR

images/podman/README.md in coder/images still says EKS Auto Mode nodes can't enable user namespaces, and that Podman storage lands on the home volume.
This PR changes both.

Generated by Coder Agents on behalf of @nickvigilante.

cjfit and others added 2 commits November 2, 2026 10:32
…er-in-workspaces-eks-auto-mode-now-supports-rootless

# Conflicts:
#	docs/admin/templates/extending-templates/docker-in-workspaces.md
#	docs/reference/cli/templates/init.md
… fail on Podman startup errors

- Mount a persistent volume at /home/coder (fs_group_change_policy
  OnRootMismatch) so repos, images and build cache survive restarts
- Fail the startup script with the Podman log when the API socket
  doesn't start
- Use kubernetes_pod_v1 and pin nodes to amd64
- Docs: fail-fast snippet and the templates init link

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cjfit cjfit changed the title docs: update rootless Podman guidance for EKS Auto Mode feat: add rootless Podman starter template and EKS Auto Mode guidance Nov 2, 2026
@cjfit

cjfit commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator Author

Merged main and kept this PR's Auto Mode paragraph. I regenerated init.md against the new table header by hand because local make gen needs Postgres, so CI's gen job is the real check. Retitled to feat:.

Authored by Claude Code on behalf of @cjfit.

…er-in-workspaces-eks-auto-mode-now-supports-rootless

# Conflicts:
#	docs/admin/templates/extending-templates/docker-in-workspaces.md

@droopy4096 droopy4096 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this looks good to me as a first iteration. Approving as-is.

cjfit and others added 2 commits November 3, 2026 12:31
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er-in-workspaces-eks-auto-mode-now-supports-rootless
@cjfit
cjfit enabled auto-merge (squash) November 3, 2026 22:06
@cjfit
cjfit merged commit a9643ff into main Nov 3, 2026
30 of 31 checks passed
@cjfit
cjfit deleted the cedric/docs-1277-docker-in-workspaces-eks-auto-mode-now-supports-rootless branch November 3, 2026 22:47
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants