[GH-ISSUE #474] Running on ARM cause The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) #233

Closed
opened 2026-02-26 10:31:12 +03:00 by kerem · 9 comments
Owner

Originally created by @talesam on GitHub (Aug 11, 2022).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/474

Now the image is out for ARM64, but it's giving an error when uploading, on x86 it works fine.

I'm running on an Oracle ARM64 server.

Here is doker-compose.yml:

version: '3.9'

services:
  onlyoffice:
    container_name: onlyoffice
    image: onlyoffice/documentserver:latest
    #restart: always
    volumes:
      - /home/tales/Docker/OnlyOffice/data:/var/www/onlyoffice/Data:rw
      - /home/tales/Docker/OnlyOffice/logs:/var/log/onlyoffice
    expose:
      - 80
      - 443
    networks:
      t4l35-net:

networks:
  t4l35-net:
    name: t4l35-net

And here is the error that appears in the log:

exec /app/ds/run-document-server.sh: exec format error
Originally created by @talesam on GitHub (Aug 11, 2022). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/474 Now the image is out for ARM64, but it's giving an error when uploading, on x86 it works fine. I'm running on an Oracle ARM64 server. ### Here is doker-compose.yml: ``` version: '3.9' services: onlyoffice: container_name: onlyoffice image: onlyoffice/documentserver:latest #restart: always volumes: - /home/tales/Docker/OnlyOffice/data:/var/www/onlyoffice/Data:rw - /home/tales/Docker/OnlyOffice/logs:/var/log/onlyoffice expose: - 80 - 443 networks: t4l35-net: networks: t4l35-net: name: t4l35-net ``` ### And here is the error that appears in the log: ``` exec /app/ds/run-document-server.sh: exec format error ```
kerem closed this issue 2026-02-26 10:31:12 +03:00
Author
Owner

@ShockwaveNN commented on GitHub (Aug 12, 2022):

but it's giving an error when uploading,

Could you describe what do you mean by uploading? Is it giving this exec format error on the docker container start or when you've uploaded some file?

<!-- gh-comment-id:1212868079 --> @ShockwaveNN commented on GitHub (Aug 12, 2022): > but it's giving an error when uploading, Could you describe what do you mean by `uploading`? Is it giving this `exec format error` on the docker container start or when you've uploaded some file?
Author
Owner

@talesam commented on GitHub (Aug 12, 2022):

when I run the container, but I'm going to test a new docker-composer that I configured and report here.

<!-- gh-comment-id:1213234454 --> @talesam commented on GitHub (Aug 12, 2022): when I run the container, but I'm going to test a new docker-composer that I configured and report here.
Author
Owner

@ShockwaveNN commented on GitHub (Aug 12, 2022):

We can rule out docker compose from this trouble

Could you run

docker run -itd -p 80:80 onlyoffice/documentserver and see if error persists?

<!-- gh-comment-id:1213237204 --> @ShockwaveNN commented on GitHub (Aug 12, 2022): We can rule out docker compose from this trouble Could you run `docker run -itd -p 80:80 onlyoffice/documentserver` and see if error persists?
Author
Owner

@talesam commented on GitHub (Aug 12, 2022):

looks like i'll have to get the dockerfile and compile

tales@t4l35-orion:~$ docker run -itd -p 8181:80 onlyoffice/documentserver
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
1321f1bfac4ab3566e3c2c3157a5680d9622c511cff1d302335e19cf9cbcbb8c

Whoever creates the image could generate it using buildx and create it for multiple platforms, I'll do that.

<!-- gh-comment-id:1213246843 --> @talesam commented on GitHub (Aug 12, 2022): looks like i'll have to get the dockerfile and compile ``` tales@t4l35-orion:~$ docker run -itd -p 8181:80 onlyoffice/documentserver WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 1321f1bfac4ab3566e3c2c3157a5680d9622c511cff1d302335e19cf9cbcbb8c ``` Whoever creates the image could generate it using buildx and create it for multiple platforms, I'll do that.
Author
Owner

@ShockwaveNN commented on GitHub (Aug 12, 2022):

This is interesting, seems that for some reason your docker thinks it's on linux/arm64/v8 platform, not on usual arm64 and trying to run amd64 as default

I'll recheck on Amazon arm machine right now, but have no access to Oracle cloud, so not sure that I can do with that

<!-- gh-comment-id:1213264742 --> @ShockwaveNN commented on GitHub (Aug 12, 2022): This is interesting, seems that for some reason your docker thinks it's on `linux/arm64/v8` platform, not on usual `arm64` and trying to run amd64 as default I'll recheck on Amazon arm machine right now, but have no access to Oracle cloud, so not sure that I can do with that
Author
Owner

@ShockwaveNN commented on GitHub (Aug 12, 2022):

Yep, sorry, seems you're right

As I remember we got some troubles with our specific details with our build process, so our devops decided make separate latest tag for arm builds

So please use

docker run -itd -p 80:80 onlyoffice/documentserver:latest-arm64
<!-- gh-comment-id:1213281772 --> @ShockwaveNN commented on GitHub (Aug 12, 2022): Yep, sorry, seems you're right As I remember we got some troubles with our specific details with our build process, so our devops decided make separate latest tag for arm builds So please use ``` docker run -itd -p 80:80 onlyoffice/documentserver:latest-arm64 ```
Author
Owner

@talesam commented on GitHub (Aug 12, 2022):

This is interesting, seems that for some reason your docker thinks it's on linux/arm64/v8 platform, not on usual arm64 and trying to run amd64 as default

I'll recheck on Amazon arm machine right now, but have no access to Oracle cloud, so not sure that I can do with that

If you want, contact me, it can be by email talesam@gmail.com or telegram @talesam, I have some ARM64 machines at oracle, I can make one available for you to test.

worked with latest-arm64 tag

<!-- gh-comment-id:1213321655 --> @talesam commented on GitHub (Aug 12, 2022): > This is interesting, seems that for some reason your docker thinks it's on `linux/arm64/v8` platform, not on usual `arm64` and trying to run amd64 as default > > I'll recheck on Amazon arm machine right now, but have no access to Oracle cloud, so not sure that I can do with that If you want, contact me, it can be by email talesam@gmail.com or telegram @talesam, I have some ARM64 machines at oracle, I can make one available for you to test. worked with `latest-arm64` tag
Author
Owner

@ShockwaveNN commented on GitHub (Aug 13, 2022):

I have some ARM64 machines at oracle, I can make one available for you to test.

Yeah, sorry, I don't think we need that since it was my mistake (forgetting about correct tag) and your problem reproduces on Amazon ARM ec2 instances, so no point in Oracle ones

worked with latest-arm64 tag

Thanks, glad to know, in that case I'll close this issue

<!-- gh-comment-id:1213758525 --> @ShockwaveNN commented on GitHub (Aug 13, 2022): > I have some ARM64 machines at oracle, I can make one available for you to test. Yeah, sorry, I don't think we need that since it was my mistake (forgetting about correct tag) and your problem reproduces on Amazon ARM ec2 instances, so no point in Oracle ones > worked with latest-arm64 tag Thanks, glad to know, in that case I'll close this issue
Author
Owner

@agolybev commented on GitHub (Aug 15, 2022):

Hi @talesam, thank you for bug report, we are going to publish supported platform version under one tag since 7.2.

<!-- gh-comment-id:1214726329 --> @agolybev commented on GitHub (Aug 15, 2022): Hi @talesam, thank you for bug report, we are going to publish supported platform version under one tag since 7.2.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#233
No description provided.