Skip to content

Containerd sets different file permission with docker for missing parent directories in image. #3017

@Random-Liu

Description

@Random-Liu

This causes backward compatibility issues when the image actually doesn't include parent directories, e.g. the image gcr.io/distroless/static:

$ tar tvf layer1.tar.gz | grep "etc/ssl"
-rw-r--r-- 0/0          235192 1969-12-31 16:00 ./etc/ssl/certs/ca-certificates.crt

The behavior in this case is undefined. But it doesn't hurt to change the permission to 0777 to keep consistency with Docker and avoid future issues.

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