therealsaumil / emux

EMUX Firmware Emulation Framework (formerly ARMX)
Mozilla Public License 2.0
687 stars 87 forks source link

Installation failes when running apk update #21

Closed FlyinPancake closed 2 years ago

FlyinPancake commented 2 years ago

Following the installation instructions, I got to the point when I have to run build-emux-docker but it fails on the apk update step due to permissions missing. Tried on Ubuntu 20.04 LTS and Fedora 35

Here's the log:

[flyinpancake@SnowCake emux-pg]$ ./build-emux-docker -help 
[+] Building 0.6s (6/43)                                                                                                                                                                                                                                     
 => [internal] load build definition from Dockerfile-emux                                                                                                                                                                                               0.0s
 => => transferring dockerfile: 102B                                                                                                                                                                                                                    0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                       0.0s
 => => transferring context: 93B                                                                                                                                                                                                                        0.0s
 => [internal] load metadata for docker.io/library/alpine:latest                                                                                                                                                                                        0.2s
 => [internal] load build context                                                                                                                                                                                                                       0.0s
 => => transferring context: 3.20kB                                                                                                                                                                                                                     0.0s
 => CACHED [ 1/39] FROM docker.io/library/alpine:latest@sha256:21a3deaa0d32a8057914f36584b5288d2e5ecc984380bc0118285c70fa8c9300                                                                                                                         0.0s
 => ERROR [ 2/39] RUN apk update                                                                                                                                                                                                                        0.2s
------
 > [ 2/39] RUN apk update:
#5 0.229 standard_init_linux.go:228: exec user process caused: permission denied

Thanks for the help in advance 😄

FlyinPancake commented 2 years ago

Toying around I found disabling BuildKit solves the issue.

therealsaumil commented 2 years ago

I also heard about these issues from a few others. If you are running docker without sudo, there is a small process you need to do to add the user to the docker group so that it can run docker with appropriate privileges.

sudo groupadd docker sudo gpasswd -a $USER docker sudo usermod -aG docker $USER

-- Saumil @therealsaumil

On 10-Feb-2022, at 14:45, FlyinPancake @.***> wrote:

 Toying around I found disabling BuildKit solves the issue.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

FlyinPancake commented 2 years ago

I was part of the docker group but eventually I discovered that fedora's implementation of docker is kinda sucky, and installing docker-ce from the official repos fixed my problems.

So to anyone having these kinds of bugs on fedora you might just install docker from the official sources

therealsaumil commented 2 years ago

That’s a good tip!

-- Saumil @therealsaumil

On 10-Feb-2022, at 17:12, FlyinPancake @.***> wrote:

 I was part of the docker group but eventually I discovered that fedora's implementation of docker is kinda sucky, and installing docker-ce from the official repos fixed my problems.

So to anyone having these kinds of bugs on fedora you might just install docker from the official sources

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.