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

Latest docker images (latest, 1.16.0, 1.15.0) don't work on arm64 #102

Closed
Liad-n opened this issue Mar 21, 2024 · 7 comments · Fixed by #103
Closed

Latest docker images (latest, 1.16.0, 1.15.0) don't work on arm64 #102

Liad-n opened this issue Mar 21, 2024 · 7 comments · Fixed by #103
Labels

Comments

@Liad-n
Copy link

Liad-n commented Mar 21, 2024

Pulled the images from msoap/shell2http

On both 1.16.0 and 1.15.0 when running the executable you get the following error:

/app/shell2http: line 0: syntax error: unterminated quoted string

on 1.14.2 you get:

/app/shell2http: line 0: syntax error: unexpected end of file (expecting ")")

on 1.14.1 and before you get the expected output:

2024/03/21 16:48:40 failed to parse arguments: requires a pair of path and shell command

Thanks for the great project!

@msoap msoap added the docker label Mar 21, 2024
@msoap
Copy link
Owner

msoap commented Mar 21, 2024

hi @Liad-n, could you please provide minimal example of docker run ... command with this error?

@Liad-n
Copy link
Author

Liad-n commented Mar 21, 2024

of course, thanks for the quick response
I attached into the container and inside it ran /app/shell2http, a normal docker run gives me an exec format error - probably has the x86 binary instead of the arm one, I checked and the 1.16.0 executable for arm works perfectly when downloaded from github.

image

@msoap
Copy link
Owner

msoap commented Mar 21, 2024

hm, interesting, that's true, binary from docker-hub, when i pull with --platform linux/arm64:

file shell2http
shell2http: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, Go BuildID=6koEGbrEEGBTYGkn9hzX/27hYYvHrvh-qBhB9K43g/H2m6LhSg5yfQBc-0NQCs/-NilITePHkXAPU22lnRu, stripped

but when i build image locally with --platform linux/arm64 then binary with correct arch:

file shell2http
shell2http: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, Go BuildID=l_gAaStGsLksdYfmePXG/QMzehRPei214aKm824Mb/XHEXvBq37vu2U1-3IoWA/Kj5xNi43t3Eotu8ny5mN, stripped

maybe something wrong with Github Action for build images, but it works well before, i'll try to create new tag for create new images

@msoap
Copy link
Owner

msoap commented Mar 21, 2024

as workaround you can also build it locally:

docker build -t msoap/shell2http --platform=linux/arm64 .

in project root

@Liad-n
Copy link
Author

Liad-n commented Mar 22, 2024

Perfect thank you @msoap

@msoap
Copy link
Owner

msoap commented Mar 23, 2024

@Liad-n seems to have fixed it, pls check with pull latest image (or :1.17.0 tag)

@Liad-n
Copy link
Author

Liad-n commented Mar 25, 2024

@msoap
Confirmed that 1.17.0 fixes the issue thanks a lot!

@Liad-n Liad-n closed this as completed Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants