TGViewer
samdark blog ☕️ (Alexander Makarov) samdark blog ☕️ (Alexander Makarov) @samdark_blog · 1.62K subscribers
Post #416 747
🧰 Running Gitea container on older kernels

I'm running Gitea at my Synology NAS which has dated Linux kernel not compatible with modern git. Using latest Gitea image directly results in:

error: unable to get random bytes for temporary file: Function not implemented


Luckily, that's easy to fix by getting older image and copying a new binary there. Could be done right in compose config (I'm using Portainer there):

networks:
gitea:
external: false

services:
server:
build:
dockerfile_inline: |
FROM gitea/gitea:1.25.5 AS old
FROM gitea/gitea:latest
COPY --from=old /usr/bin/git /usr/bin/git
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
restart: always
networks:
- gitea
volumes:
- /volume1/docker/gitea:/data
ports:
- "3000:3000"
- "6022:22"


#nas #synology #git #gitea
  • 👍 9
More from @samdark_blog
  1. Sep 23, 2026On quantum computing and IonQ Error Decoder In my university we were told many times that…
  2. Sep 22, 2026⏩ Re-benchmarked different ways to serve PHP Some time ago I've made some benchmarks to fi…
  3. Sep 9, 2026Пыхник’26 — целая неделя PHP! С 28 сентября по 2 октября пройдёт Пыхник’26 — онлайн-конфер…
  4. Sep 8, 2026My name is Taras Soroka. I’m a CTO, digital transformation consultant, mentor, and the hos…
  5. Sep 8, 2026💬 Bjarne Stroustrup on AI Code will still be written by humans, and they will rely on abs…
  6. Sep 7, 2026🌬 TION MagicAir CO² sensor calibration via USB HID I have a Tion breather and a MagicAir…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →