Skip to content

docker fails to start in chroot qemu environment (error: getCPUInfo) #1146

@ivelin

Description

@ivelin
  • This is a bug report
  • This is a feature request
  • I searched existing issues before opening this one

Expected behavior

Docker engine start.

Actual behavior

Docker engine fails to start with the following error:

+ docker version
time="2020-11-16T02:39:19-06:00" level=error msg="failure getting variant" error="getCPUInfo for pattern: Cpu architecture: not found"
Client: Docker Engine - Community
 Version:           19.03.13
 API version:       1.40
 Go version:        go1.13.15
 Git commit:        4484c46
 Built:             Wed Sep 16 17:07:02 2020
 OS/Arch:           linux/arm
 Experimental:      false
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Steps to reproduce the behavior

Fully reproducible environment available as github workflow:

https://github.com/ambianic/ambianic-rpi-image/runs/1405211947?check_suite_focus=true#step:9:4292

Context summary:
The goal is to build a Raspberry Pi OS custom image with docker on it. We are using the official pi-gen project with a custom step that installs docker.

The step seems to succeed in installing docker, but when we try to actually run it we see the reported error message.
Similar problems have been reported before:

Output of docker version:


+ docker version
time="2020-11-16T02:39:19-06:00" level=error msg="failure getting variant" error="getCPUInfo for pattern: Cpu architecture: not found"
Client: Docker Engine - Community
 Version:           19.03.13
 API version:       1.40
 Go version:        go1.13.15
 Git commit:        4484c46
 Built:             Wed Sep 16 17:07:02 2020
 OS/Arch:           linux/arm
 Experimental:      false
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Output of docker info:

(paste your output here)

Additional environment details (AWS, VirtualBox, physical, etc.)

Github workflow with Ubuntu Latest image.
https://github.com/ambianic/ambianic-rpi-image/blob/46a5eea3a0451770947f27a60dbe360cc5614aaa/.github/workflows/main.yml

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