Skip to content

[27.0 regression] Docker Pull Fails in Rootless "failed to register layer: failed to Lchown "/dev/console" #48064

@drcapulet

Description

@drcapulet

Description

With the release of v27, we're unable to pull a certain image from Docker Hub:

failed to register layer: failed to Lchown "/dev/console" for UID 0, GID 0: lchown /dev/console: no such file or directory

In addition, when trying to use a registry mirror, we get the following error even though the mirror isn't listening on 443 (it is on localhost however):

Get "https://registry-1.docker.io/v2/": dial tcp 127.0.0.1:443: connect: connection refused

Reproduce

  1. Install docker-ce:5:27.0.1-1~debian.12~bookworm in a rootless mode (I haven't tested normal mode)
  2. docker pull mysql:8.0.33-oracle

Expected behavior

The image should be able to pulled.

docker version

Client: Docker Engine - Community
 Version:           27.0.1
 API version:       1.46
 Go version:        go1.21.11
 Git commit:        7fafd33
 Built:             Mon Jun 24 14:58:05 2024
 OS/Arch:           linux/amd64
 Context:           rootless

Server: Docker Engine - Community
 Engine:
  Version:          27.0.1
  API version:      1.46 (minimum version 1.24)
  Go version:       go1.21.11
  Git commit:       ff1e2c0
  Built:            Mon Jun 24 14:58:05 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.18
  GitCommit:        ae71819c4f5e67bb4d5ae76a6b735f29cc25774e
 runc:
  Version:          1.7.18
  GitCommit:        v1.1.13-0-g58aa920
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
 rootlesskit:
  Version:          2.0.2
  ApiVersion:       1.1.1
  NetworkDriver:    slirp4netns
  PortDriver:       builtin
  StateDir:         /run/user/999/dockerd-rootless
 slirp4netns:
  Version:          1.2.0
  GitCommit:        656041d45cfca7a4176f6b7eed9e4fe6c11e8383

docker info

Client: Docker Engine - Community
 Version:    27.0.1
 Context:    rootless
WARNING: No cpuset support
WARNING: No io.weight support
 Debug Mode: false
WARNING: No io.weight (per device) support
WARNING: No io.max (rbps) support
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.15.1
WARNING: No io.max (wbps) support
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
WARNING: No io.max (riops) support
  compose: Docker Compose (Docker Inc.)
WARNING: No io.max (wiops) support
    Version:  v2.28.1
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 1
  Running: 1
  Paused: 0
  Stopped: 0
 Images: 8
 Server Version: 27.0.1
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: true
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: ae71819c4f5e67bb4d5ae76a6b735f29cc25774e
 runc version: v1.1.13-0-g58aa920
 init version: de40ad0
 Security Options:
  seccomp
   Profile: builtin
  rootless
  cgroupns
 Kernel Version: 6.1.0-21-cloud-amd64
 Operating System: Debian GNU/Linux 12 (bookworm)
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 15.63GiB
 Name: packer
 ID: bbe714f9-4b00-4010-9c93-0cabbbe25a84
 Docker Root Dir: /var/lib/buildkite-agent/.local/share/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

Additional Info

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions