小编Tho*_*mas的帖子

Issues with time() when running a C musl application in docker container on arm

My application is unable to handle time operations like time(2) when it runs in alpine docker container on an arm device.

What I have: I am building a native c application which is statically linked to musl with toolchain from musl.cc (arm-linux-musleabihf-gcc). I am using latest alpine container (without image tag).

How it behaves:

  • Running binary directly on arm device works as expected
  • Running in alpine container on x64 device works as expected
  • Running in alpine container on arm device …

c arm docker musl alpine-linux

5
推荐指数
1
解决办法
627
查看次数

标签 统计

alpine-linux ×1

arm ×1

c ×1

docker ×1

musl ×1