abesnier / docker-guacamole

A self-contained guacamole docker container for x64. Remotely connect over SSH, RDP or VNC using HTML5.
https://hub.docker.com/r/abesnier/guacamole
GNU General Public License v3.0
78 stars 14 forks source link

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

Open KureOnGit opened 11 months ago

KureOnGit commented 11 months ago

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 commented 11 months ago

That's the correct place to ask, not you missing something, and most likely my mistake. I do not have an arm/v7 device, so I just build the image.  I'll check with S6 overlay documentation, and hopefully provide an update soon. CheersAntoine Le vendredi 29 septembre 2023 à 01:42:53 UTC+2, KureOnGit @.***> a écrit :

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.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

KureOnGit commented 11 months ago

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

abesnier commented 11 months ago

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 armhfor armv7l?

abesnier commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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"