Skip to content

fix(cli): Fix broken rootless docker/podman because uid:gid is set - #4778

Open
CaspianChaharom wants to merge 1 commit into
nhost:mainfrom
CaspianChaharom:fix/rootless-host-user-mapping
Open

fix(cli): Fix broken rootless docker/podman because uid:gid is set#4778
CaspianChaharom wants to merge 1 commit into
nhost:mainfrom
CaspianChaharom:fix/rootless-host-user-mapping

Conversation

@CaspianChaharom

@CaspianChaharom CaspianChaharom commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

PR #4538 adds user: {uid}:{gid} to the docker-compose on the console/constellation services and the hasura-cli wrapper on Linux hosts. When running with a rootless daemon, that uid gets remapped to a different host user that cannot access the bind-mounted nhost folder, breaking nhost up. With the changes here, docker info is checked and skips the mapping when the daemon already maps container root to the caller (rootless Docker/Podman, Docker Desktop).

Checklist

  • No breaking changes
  • Tests pass
  • New features have new tests
  • Documentation is updated (if applicable)
  • Title of the PR is in the correct format (see below)

PR nhost#4538 adds `user: <uid>:<gid>` to the docker-compose on the console/constellation services and the hasura-cli wrapper on every Linux host. When running with a rootless daemon, that uid gets remapped to a different host user that cannot access the bind-mounted nhost folder, breaking `nhost up`. Now `docker info` is checked and skips the mapping when the daemon already maps container root to the caller (rootless Docker/Podman, Docker Desktop).
@CaspianChaharom CaspianChaharom changed the title fix(cli): don't force host uid:gid on rootless docker/podman fix(cli): Fix broken rootless docker/podman because uid:gid is set Aug 7, 2026
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.

1 participant