Skip to content

[containerd@master] docker run busybox true fails with io.containerd.runc.v2 #41710

@AkihiroSuda

Description

@AkihiroSuda

Description

docker run busybox true fails with io.containerd.runc.v2, though it works with io.containerd.runtime.v1.linux.

Steps to reproduce the issue:

$ docker run --name tmp --runtime=io.containerd.runtime.v1.linux busybox true; echo $?
WARNING: Configured runtime "io.containerd.runtime.v1.linux" is deprecated and will be removed in the next release.
0

$ docker run --name tmp --runtime=io.containerd.runc.v2 busybox true; echo $
137

Describe the results you received:
Fails with io.containerd.runc.v2, though it works with io.containerd.runtime.v1.linux.

Can't find suspicious output in the daemon logs.

Also, the issue is not reproducible with ctr run docker.io/library/busybox:latest tmp true.
So the issue is likely to be on Moby side rather than on containerd side. Regression in containerd/containerd#4538

Describe the results you expected:
Should work with io.containerd.runc.v2

Output of docker version:

Client:
 Version:           20.10.0-dev
 API version:       1.41
 Go version:        go1.13.15
 Git commit:        5836f20c2
 Built:             Tue Nov 24 09:30:34 2020
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server:
 Engine:
  Version:          dev
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       6c0a036dce
  Built:            Tue Nov 24 09:29:30 2020
  OS/Arch:          linux/amd64
  Experimental:     true
 containerd:
  Version:          v1.4.0-2353-gebc0ddb28
  GitCommit:        ebc0ddb28cd4ccc81ebf9cc14a6758e4d4aea2ae
 runc:
  Version:          1.0.0-rc92+dev
  GitCommit:        06b737bb156b49382a46736558d225c4210894a7
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Output of docker info:

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Build with BuildKit (Docker Inc., v0.4.2-42-g1ccf0bd)

Server:
 Containers: 3
  Running: 0
  Paused: 0
  Stopped: 3
 Images: 151
 Server Version: dev
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runsc-kvm crun io.containerd.runc.v2 io.containerd.runtime.v1.linux kata runc runc-rc92 runsc sysbox-runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: ebc0ddb28cd4ccc81ebf9cc14a6758e4d4aea2ae
 runc version: 06b737bb156b49382a46736558d225c4210894a7
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: default
 Kernel Version: 5.8.0-29-generic
 Operating System: Ubuntu 20.10
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 15.61GiB
 Name: suda-ws01
 ID: E2YB:EGZO:6BNW:EPHS:4WFQ:EIDV:ZZ6D:QBZK:6673:CIOR:DLZ6:SI3D
 Docker Root Dir: /var/lib/docker
 Debug Mode: true
  File Descriptors: 25
  Goroutines: 43
  System Time: 2020-11-24T19:46:12.422124142+09:00
  EventsListeners: 0
 Username: akihirosuda
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: true
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No blkio weight support
WARNING: No blkio weight_device support

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/runtimeRuntimekind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.version/master

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions