Skip to content

containerd sets the wrong gid and groups permissions #2527

@tnextday

Description

@tnextday

Description

When only USER is set in the Dockerfile, containerd also sets the values of gid and group.

relate issue: https://github.com/bitnami/bitnami-docker-redis/issues/100

Steps to reproduce the issue:

  1. Run docker.io/bitnami/redis:4.0.10-debian-9 use containerd
  2. Get uid and gid permissions in the container

Describe the results you received:

I have no name!@redis-master-0:/$ id
uid=1001 gid=1001 groups=1001

Describe the results you expected:

I have no name!@redis-master-0:/$ id
uid=1001 gid=0(root) groups=0(root)

Output of containerd --version:

containerd github.com/containerd/containerd v1.1.2 468a545b9edcd5932818eb9de8e72413e616e86e

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions