gpt4 book ai didi

docker nginx,退出代码 139

转载 作者:行者123 更新时间:2023-12-03 09:40:35 25 4
gpt4 key购买 nike

我正在尝试在 docker 中运行 nginx 网络服务器,但它立即停止并显示退出代码 139。
这是一个全新的设置,容器不会生成日志。
错误 139:指示失败,因为容器收到 SIGSEGV。
所以不知道它可能是什么:
设置:

  • 树莓派 3b+ 和 16GB microSD
  • 正在运行:hypriotos-rpi-v1.12.3.img.zip
  • Docker 19.03.12

  • 我尝试使用以下命令运行 nginx:
    docker run nginx
    几秒钟后,这会以退出代码 139 停止。
    它使用 nginx:latest 图像(来自“pull nginx”)。没有其他容器正在运行。
    其他没有问题的容器:portainer、netdata、busybox。
    还尝试了 'rpi-nginx' 图像,但同样的错误 139。
    'docker检查nginx'的结果:
    [
    {
    "Id": "sha256:7c554206e557aea70d592e48b168d66c8e5ee6604e064cbc20b92bff10a3bc3a",
    "RepoTags": [
    "nginx:latest"
    ],
    "RepoDigests": [
    "nginx@sha256:c3a1592d2b6d275bef4087573355827b200b00ffc2d9849890a4f3aa2128c4ae"
    ],
    "Parent": "",
    "Comment": "",
    "Created": "2020-11-17T22:54:26.514640916Z",
    "Container": "758473294fb95509727018334cc52a102816a0c1c57e6e85a4dcf1158a5be180",
    "ContainerConfig": {
    "Hostname": "758473294fb9",
    "Domainname": "",
    "User": "",
    "AttachStdin": false,
    "AttachStdout": false,
    "AttachStderr": false,
    "ExposedPorts": {
    "80/tcp": {}
    },
    "Tty": false,
    "OpenStdin": false,
    "StdinOnce": false,
    "Env": [
    "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
    "NGINX_VERSION=1.19.4",
    "NJS_VERSION=0.4.4",
    "PKG_RELEASE=1~buster"
    ],
    "Cmd": [
    "/bin/sh",
    "-c",
    "#(nop) ",
    "CMD [\"nginx\" \"-g\" \"daemon off;\"]"
    ],
    "Image": "sha256:3f83e43f035de87c25066e7044216d38353611558187fa4a3335b2c18d3e06a8",
    "Volumes": null,
    "WorkingDir": "",
    "Entrypoint": [
    "/docker-entrypoint.sh"
    ],
    "OnBuild": null,
    "Labels": {
    "maintainer": "NGINX Docker Maintainers <docker-maint@nginx.com>"
    },
    "StopSignal": "SIGTERM"
    },
    "DockerVersion": "19.03.12",
    "Author": "",
    "Config": {
    "Hostname": "",
    "Domainname": "",
    "User": "",
    "AttachStdin": false,
    "AttachStdout": false,
    "AttachStderr": false,
    "ExposedPorts": {
    "80/tcp": {}
    },
    "Tty": false,
    "OpenStdin": false,
    "StdinOnce": false,
    "Env": [
    "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
    "NGINX_VERSION=1.19.4",
    "NJS_VERSION=0.4.4",
    "PKG_RELEASE=1~buster"
    ],
    "Cmd": [
    "nginx",
    "-g",
    "daemon off;"
    ],
    "Image": "sha256:3f83e43f035de87c25066e7044216d38353611558187fa4a3335b2c18d3e06a8",
    "Volumes": null,
    "WorkingDir": "",
    "Entrypoint": [
    "/docker-entrypoint.sh"
    ],
    "OnBuild": null,
    "Labels": {
    "maintainer": "NGINX Docker Maintainers <docker-maint@nginx.com>"
    },
    "StopSignal": "SIGTERM"
    },
    "Architecture": "arm",
    "Os": "linux",
    "Size": 102509632,
    "VirtualSize": 102509632,
    "GraphDriver": {
    "Data": {
    "LowerDir": "/var/lib/docker/overlay2/b7377edf293c2cca280779320a3eb4f9210f9149ca768798a43afa3b5d1aacef/diff:/var/lib/docker/overlay2/0751d900e8d7ab471e0876112be7a098be618e179702c5c547ea2f66ebcc4717/diff:/var/lib/docker/overlay2/c3e60839ffc1ebd5cc4ecf21eae2bf2467fe504b953df4a8fa9f87bcfc23c72d/diff:/var/lib/docker/overlay2/ef6e643beefb584790dda69a79126eb46236d651caed98e415abb1304b0ed5ec/diff",
    "MergedDir": "/var/lib/docker/overlay2/5c4b8c7ab51f07f20e6ab25b3ad9f125f7d64c7dc56d84cddc650345e2b3d40f/merged",
    "UpperDir": "/var/lib/docker/overlay2/5c4b8c7ab51f07f20e6ab25b3ad9f125f7d64c7dc56d84cddc650345e2b3d40f/diff",
    "WorkDir": "/var/lib/docker/overlay2/5c4b8c7ab51f07f20e6ab25b3ad9f125f7d64c7dc56d84cddc650345e2b3d40f/work"
    },
    "Name": "overlay2"
    },
    "RootFS": {
    "Type": "layers",
    "Layers": [
    "sha256:70d894963bcc7f1b789cc5a26b02403a8144d4588bbc87739641155f5189b2ef",
    "sha256:310c1dc973cc0500d3367cc708b7268a2c44919acff89df8b17ac8898a7f9615",
    "sha256:7f24751cfac568fdbd1c646bfcc405fd952f7a4bfa3d55abb46782f6c65ff5f3",
    "sha256:d044176104cf5ee41702563ed781f9f38d71f78df9e25f6cf862a427d55f6970",
    "sha256:052ab1c348864a58088c6d1ccff5a8a5e32e5d5fed997bab49e7437f97fcf5d6"
    ]
    },
    "Metadata": {
    "LastTagTime": "0001-01-01T00:00:00Z"
    }
    }
    ]

    最佳答案

    nginx图像是为 amd64 架构构建的。
    有一个针对 arm64 架构的变体:arm64v8/nginx .

    关于docker nginx,退出代码 139,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64993898/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com