exec用户进程导致“ exec格式错误”

时间:2020-08-21 07:44:19

标签: docker-compose

我尝试运行在amd64体系结构上运行的docker-compose文件,但在armv7上生成相同的docker-compose文件

standard_init_linux.go:211: exec user process caused "exec format error"

docker-compose.yml

version: '2'
services:
    gitit:
        image: marcelhuberfoo/docker-gitit:latest
#        container_name: gitit 
        restart: always
        networks:
        - frontproxy_default
        - default
        environment:
        - VIRTUAL_HOST=wiki.gerastree.at
        - GIT_COMMITTER_NAME="xx"
        - GIT_COMMITTER_EMAIL="xx"
        - LETSENCRYPT_HOST=wiki.xx
        - LETSENCRYPT_EMAIL=xx
        volumes: 
        - /home/frank/Data/wikiFolder/af:/data 
                # the config file is there 
                # (but my.conf is the one used regularly)
        ports:
        - 5001:5001  
networks:
   frontproxy_default:
        external: true

,紧跟instructions

什么会导致此错误,该错误仅发生在arm架构上,而不发生在amd上?最好的调试方法是什么?我对docker很陌生...

1 个答案:

答案 0 :(得分:0)

错误是“愚蠢的”-提到docker-compose.yml的nginx代理服务器的图像不适用于armv7架构。

我用buildx来制作一个。可以用作

        image: andrewufrank/radical304:2

更恰当的错误消息将不胜感激!

相关问题