Skip to content

runc in containerd1.5.7 does not work on CentOS7 #6091

@kimullaa

Description

@kimullaa

Description

runc in https://github.com/containerd/containerd/releases/download/v1.5.7/cri-containerd-cni-1.5.7-linux-amd64.tar.gz is statically linked file,so runc does not work on CentOS7.

#3871 (comment)

Steps to reproduce the issue

Describe the results you received and expected

The difference between https://github.com/containerd/containerd/releases/download/v1.5.7/cri-containerd-cni-1.5.7-linux-amd64.tar.gz and https://github.com/opencontainers/runc/releases/download/v1.0.2/runc.amd64 is:

  • dynamically linked / statically linked
  • not stripped / stripped

runc in https://github.com/containerd/containerd/releases/download/v1.5.7/cri-containerd-cni-1.5.7-linux-amd64.tar.gz

# wget https://github.com/containerd/containerd/releases/download/v1.5.7/cri-containerd-cni-1.5.7-linux-amd64.tar.gz
# tar -xf cri-containerd-cni-1.5.7-linux-amd64.tar.gz
# file usr/local/sbin/runc
usr/local/sbin/runc: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 3.2.0, BuildID[sha1]=c8b94e4ecf1278426dfd96681d33631938ae578e, not stripped

runc in https://github.com/opencontainers/runc/releases/download/v1.0.2/runc.amd64

# wget https://github.com/opencontainers/runc/releases/download/v1.0.2/runc.amd64

# file runc.amd64
runc.amd64: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, BuildID[sha1]=d97b7429628258a7454a211fb83263ab4d3af490, for GNU/Linux 3.2.0, stripped

I think that runc in https://github.com/containerd/containerd/releases/download/v1.5.7/cri-containerd-cni-1.5.7-linux-amd64.tar.gz also needs to be statically linked.
Because you will not have to worry about compatibility between distributions.

What version of containerd are you using?

containerd github.com/containerd/containerd v1.5.7 8686ede

Any other relevant information

No response

Show configuration if it is related to CRI plugin.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions