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

Can't start docker for arm/v7 (raspberry) #26

Open
KureOnGit opened this issue Sep 28, 2023 · 11 comments
Open

Can't start docker for arm/v7 (raspberry) #26

KureOnGit opened this issue Sep 28, 2023 · 11 comments

Comments

@KureOnGit
Copy link

Hi!
Let me preface by apologizing because it's very likely I'm missing something very obvious as I just started with docker.
I got the image for [abesnier/guacamole:latest-pg14] as it's the most recent tag with arm/v7 but when I start the container all I get is "init: 37: exec: s6-overlay-suexec: Exec format error".

I didn't know where else to ask, from what I can read docker is supposed to be able to tell the appropriate "sub image" for the device from where it's running, however it seems it's attempting to start for something other than arm/v7.

@abesnier
Copy link
Owner

abesnier commented Sep 29, 2023 via email

@KureOnGit
Copy link
Author

Oh, appreciate that! I'll drop by if it proved to be lazy brain and lack of coffee from my side

@abesnier
Copy link
Owner

abesnier commented Oct 2, 2023

That's definitely my mistake, I included the wrong s6overlay for armv7...
I am building a test image, and when ready, if I may, could you please try to run it? If it works, then I'll update the release image with the fix.

I just need to make sure I get the right architecture. May I please ask you to go into any of your already containers (docker run -it whatevercontainer bash), and run echo $(arch), and post the result here? Is it armhf or armv7l?

@abesnier
Copy link
Owner

abesnier commented Oct 2, 2023

test image ready, please let me know if it works.:
docker pull abesnier/guacamole:testarmv7

By the way, I am curious, armv7 is not a young nor very powerful platform. Are your running linux on a tablet or phone?

@KureOnGit
Copy link
Author

Thanks!
Installing as a stack in portainer, if it doesnt work I'll pull the image from docker.
Will come back with an update.

Device is a Raspberry Pi 4! In itself should be arm64 but apparently the OS (raspbian) is not for compatibility with older Pi's.
Will need to update this to a x64 OS eventually but was hoping raspbian was lightweight.

@KureOnGit
Copy link
Author

It seems it failed, all Io have in the logs is: /init: 37: exec: s6-overlay-suexec: Exec format error
I have successfuly started one with dickhub/guacamole:1.1.0-armhf, if it helps somehow

@abesnier
Copy link
Owner

abesnier commented Oct 5, 2023

Thanks for the update, sorry I could not fix properly.
Glad you found an image that works. I'll inspect it and see what they do differently.

@abesnier
Copy link
Owner

abesnier commented Oct 5, 2023

Well, I have been a dumbass, I just realized I built the wrong Dockerfile... And lost at least one user in the process... A new test image has been pushed, by the way, and I'll still roll out the fix in future images.

@KureOnGit
Copy link
Author

If that user was me I'd happily switch given how much you care!
I've tried abesnier/guacamole:testarm and got a very similar error: /init: 37: exec: s6-overlay-suexec: not found

This is my .yaml:

version: "3"

services:

  guacamole:

    image: abesnier/guacamole:testarm
    container_name: guacamole_abesnier

    volumes:
      - postgres:/config

    ports:
      - 9002:8080

volumes:
  postgres:
    driver: local

@abesnier
Copy link
Owner

abesnier commented Oct 6, 2023

I am at a loss then.

The only thing I see is that I don't get the correct architecture to install the correct S6 Overlay.

If you have time, can you run the image tomcat:9.0.80-jre11 (which is the base for my Guacamole image), go into its bash (docker exec -it tomcat bash), and give me the result of echo $(arch)?

@KureOnGit
Copy link
Author

Eh, not sure how to do it properly, tried to set it up and it does down with "Cannot find /usr/local/tomcat/bin/setclasspath.sh
This file is needed to run this program"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants