Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] "ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get install --yes lib32stdc++6 procps" did not complete successfully: exit code: 1" on Raspberry Pi while building the images #11

Open
ghost opened this issue Feb 11, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Feb 11, 2023

Describe the bug:

Dockerimage build script fails on Raspberry Pi.

Log:

xelot@raspi:~/kf_stuff/killing-floor-docker $ sudo docker build -t kf1-docker .
[sudo] password for xelot: 
[+] Building 43.8s (6/10)                                                                                                   
 => [internal] load .dockerignore                                                                                      0.1s
 => => transferring context: 2B                                                                                        0.0s
 => [internal] load build definition from Dockerfile                                                                   0.1s
 => => transferring dockerfile: 493B                                                                                   0.0s
 => [internal] load metadata for docker.io/cm2network/steamcmd:latest                                                  1.7s
 => [1/6] FROM docker.io/cm2network/steamcmd@sha256:64eb1d95e2a72e14449773ff62e36177d7d8067bd032c17227cf0e45d470b118  38.4s
 => => resolve docker.io/cm2network/steamcmd@sha256:64eb1d95e2a72e14449773ff62e36177d7d8067bd032c17227cf0e45d470b118   0.0s
 => => sha256:64eb1d95e2a72e14449773ff62e36177d7d8067bd032c17227cf0e45d470b118 742B / 742B                             0.0s
 => => sha256:ef0a9299c6ab43fbcf43fcaae284e517448b7d4a7b12cfd019d0a422f4ef7d58 4.07kB / 4.07kB                         0.0s
 => => sha256:d24274118e330e7e16af8c48e11ee2922af94d3924258f6f90ccf3450da39f47 162.60MB / 162.60MB                    18.6s
 => => sha256:bb263680fed18eecdc67f885094df6f589bafc19004839d7fdf141df236a61aa 31.41MB / 31.41MB                       4.3s
 => => extracting sha256:bb263680fed18eecdc67f885094df6f589bafc19004839d7fdf141df236a61aa                              9.2s
 => => extracting sha256:d24274118e330e7e16af8c48e11ee2922af94d3924258f6f90ccf3450da39f47                             18.1s
 => [internal] load build context                                                                                      0.1s
 => => transferring context: 6.99kB                                                                                    0.0s
 => ERROR [2/6] RUN apt-get update     && apt-get install --yes         lib32stdc++6 procps                            3.5s
------                                                                                                                      
 > [2/6] RUN apt-get update     && apt-get install --yes         lib32stdc++6 procps:
#0 0.658 exec /bin/sh: exec format error
------
Dockerfile:6
--------------------
   5 |     # Install dependencies and create steam user
   6 | >>> RUN apt-get update \
   7 | >>>     && apt-get install --yes \
   8 | >>>         lib32stdc++6 procps
   9 |     USER steam
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update     && apt-get install --yes         lib32stdc++6 procps" did not complete successfully: exit code: 1

To Reproduce:
Run "sudo docker build -t kf1-docker ." on Raspberry Pi

Expected behavior:
Image should be built.

Environment (please complete the following information):

  • Docker Version
Client: Docker Engine - Community
 Version:           23.0.1
 API version:       1.42
 Go version:        go1.19.5
 Git commit:        a5ee5b1
 Built:             Thu Feb  9 19:46:47 2023
 OS/Arch:           linux/arm
 Context:           rootless

Server: Docker Engine - Community
 Engine:
  Version:          23.0.1
  API version:      1.42 (minimum version 1.12)
  Go version:       go1.19.5
  Git commit:       bc3805a
  Built:            Thu Feb  9 19:46:47 2023
  OS/Arch:          linux/arm
  Experimental:     false
 containerd:
  Version:          1.6.16
  GitCommit:        31aa4358a36870b21a992d3ad2bef29e1d693bec
 runc:
  Version:          1.1.4
  GitCommit:        v1.1.4-0-g5fd4c4d
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
 rootlesskit:
  Version:          1.1.0
  ApiVersion:       1.1.1
  NetworkDriver:    slirp4netns
  PortDriver:       builtin
  StateDir:         /tmp/rootlesskit951453937
 slirp4netns:
  Version:          1.0.1
  GitCommit:        6a7b16babc95b6a3056b33fb45b74a6f62262dd4
  • OS
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
  • Terminal used
    Linux shell
@ghost ghost added the bug Something isn't working label Feb 11, 2023
@ghost ghost assigned Vel-San Feb 11, 2023
@github-actions
Copy link

Oh, an issue? Vel will try and check your changes ASAP; make sure you have perma-links for codes/snippets if it is code related!

@Vel-San
Copy link
Owner

Vel-San commented Feb 11, 2023

Hi @mejwen ! Thanks for opening an issue here and for using this project.

Unfortunatley the image builds just fine on my machine (WSL2/Linux)

image

First, can you try running the pre-built image on your Pi?
I think this has to be something specific to your Pi. Also, is there a specific reason to run docker as root (sudo)?

Can you try and build using the old docker logging output:

DOCKER_BUILDKIT=0 docker build --progress=plain -t kf1-docker .

@Vel-San
Copy link
Owner

Vel-San commented Feb 11, 2023

After investigating a little bit, it looks like there are some restrictions to the ARCH type of your RasPi (Arm vs x86-64) and docker image building.

Perhaps you can try this and let me know if it works for you:

docker buildx build --platform=linux/amd64,linux/arm64 -t kf1-docker .

@ghost
Copy link
Author

ghost commented Feb 13, 2023

YOu're correct. It's related to 32-bit OS used by Raspberry Pi. I need to figure out how to build your image on it.

There is a guide for Raspberyy Pi server, but it uses standalone app as server, I prefer docker though.
https://steamcommunity.com/sharedfiles/filedetails/?id=2800688943

@Vel-San
Copy link
Owner

Vel-San commented Feb 13, 2023

YOu're correct. It's related to 32-bit OS used by Raspberry Pi. I need to figure out how to build your image on it.

There is a guide for Raspberyy Pi server, but it uses standalone app as server, I prefer docker though.

https://steamcommunity.com/sharedfiles/filedetails/?id=2800688943

Let me know if I can support you in any way.

If buildx works for you to build for 32bit then we can integrate the instructions in the README.

Good Luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant