Docker-compose not working on RPi 3 #2450

Closed
opened 2025-11-02 04:36:42 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @LegendaryB on GitHub (Oct 25, 2018).

  • Operating system: HypriotOS on raspberry pi 3
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Hey guys,

I'm trying to get gitea running using docker-compose. I have followed the documentation on the website.

My docker compose file looks like this:

version: "2"
networks:
    gitea:
        external: false
services:
    server:
        image: gitea/gitea:latest
        environment:
            - USER_UID=1000
            - USER_GID=1000
            - RUN_MODE=prod
        restart: always
        networks:
            - gitea
        volumes:
            - .:/data
        ports:
            - "3000:3000"
            - "222:22"

When I now run the docker-compose up command i get the following output:

Starting gitea_server_1 ... done
Attaching to gitea_server_1
server_1  | standard_init_linux.go:190: exec user process caused "exec format error"
gitea_server_1 exited with code 1
server_1  | standard_init_linux.go:190: exec user process caused "exec format error"

And that message is repeated the entire time. Also the gitea server is not accessible on port 3000. I think maybe it's an problem with the image? Maybe it is somehow pulling the wrong image for the architecture?

Kind Regards,
Daniel

Originally created by @LegendaryB on GitHub (Oct 25, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Operating system: HypriotOS on raspberry pi 3 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [X] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [X] Not relevant - Log gist: ## Description Hey guys, I'm trying to get gitea running using docker-compose. I have followed the documentation on the website. My docker compose file looks like this: ``` version: "2" networks: gitea: external: false services: server: image: gitea/gitea:latest environment: - USER_UID=1000 - USER_GID=1000 - RUN_MODE=prod restart: always networks: - gitea volumes: - .:/data ports: - "3000:3000" - "222:22" ``` When I now run the docker-compose up command i get the following output: ``` Starting gitea_server_1 ... done Attaching to gitea_server_1 server_1 | standard_init_linux.go:190: exec user process caused "exec format error" gitea_server_1 exited with code 1 server_1 | standard_init_linux.go:190: exec user process caused "exec format error" ``` And that message is repeated the entire time. Also the gitea server is not accessible on port 3000. I think maybe it's an problem with the image? Maybe it is somehow pulling the wrong image for the architecture? Kind Regards, Daniel
GiteaMirror added the issue/duplicate label 2025-11-02 04:36:42 -06:00
Author
Owner

@techknowlogick commented on GitHub (Oct 25, 2018):

The :latest tag isn't built for ARM (aka raspberrypi), please refer to this issue for updates: #531

@techknowlogick commented on GitHub (Oct 25, 2018): The `:latest` tag isn't built for ARM (aka raspberrypi), please refer to this issue for updates: #531
Author
Owner

@LegendaryB commented on GitHub (Oct 25, 2018):

So I currently can't run it over a docker-compose file, right?

@LegendaryB commented on GitHub (Oct 25, 2018): So I currently can't run it over a docker-compose file, right?
Author
Owner

@lafriks commented on GitHub (Oct 25, 2018):

@dbelz only if you build docker image yourself for arm

@lafriks commented on GitHub (Oct 25, 2018): @dbelz only if you build docker image yourself for arm
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2450