Starbix / dockerimages

🐳 Some dockerfiles based on alpine
MIT License
26 stars 6 forks source link

Exec Format Error #9

Open TristBella opened 4 years ago

TristBella commented 4 years ago

I just used portainer to install this on a raspberry pi 2. It installed flawlessly however every time it starts, it stops with the below error. I had this working perfect on unRaid with no issues.

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

TristBella commented 4 years ago

This may help. It is the inspection of the container.

{ "AppArmorProfile": "", "Args": [], "Config": { "AttachStderr": false, "AttachStdin": false, "AttachStdout": false, "Cmd": [ "run.sh" ], "Domainname": "", "Entrypoint": null, "Env": [ "TOKEN=", "MACHINEID=", "SERVERNAME=", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "UID=991", "GID=991", "DEBUG=false", "PORT=2389", "HOST=0.0.0.0" ], "ExposedPorts": { "2389/tcp": {} }, "Hostname": "5e54c4851ee5", "Image": "starbix/plex-ldap:latest", "Labels": { "maintainer": "Starbix" }, "OnBuild": null, "OpenStdin": false, "StdinOnce": false, "Tty": false, "User": "", "Volumes": null, "WorkingDir": "" }, "Created": "2020-01-23T21:32:39.48976182Z", "Driver": "overlay2", "ExecIDs": null, "GraphDriver": { "Data": { "LowerDir": "/var/lib/docker/overlay2/d8b15ec3f4814b85201b0d9fd8c01b01afde8e66883de11d8f596643946187a1-init/diff:/var/lib/docker/overlay2/888e4785417e6a3a9f9edafb33a248ce35e3d57505ae3dc2e5feea4a2f8960f8/diff:/var/lib/docker/overlay2/afaa86e71e3b2265468646616b3c2ecac3168661f3fd78e0d94370dfab938426/diff:/var/lib/docker/overlay2/782794ce28a422818a6b1eec4a1472ffd51eecf17be66b630090f28669bfc276/diff:/var/lib/docker/overlay2/b3c1118f70b9a4ba2e08577c25f490180264b366a1209c4632b13184924c3782/diff", "MergedDir": "/var/lib/docker/overlay2/d8b15ec3f4814b85201b0d9fd8c01b01afde8e66883de11d8f596643946187a1/merged", "UpperDir": "/var/lib/docker/overlay2/d8b15ec3f4814b85201b0d9fd8c01b01afde8e66883de11d8f596643946187a1/diff", "WorkDir": "/var/lib/docker/overlay2/d8b15ec3f4814b85201b0d9fd8c01b01afde8e66883de11d8f596643946187a1/work" }, "Name": "overlay2" }, "HostConfig": { "AutoRemove": false, "Binds": [], "BlkioDeviceReadBps": null, "BlkioDeviceReadIOps": null, "BlkioDeviceWriteBps": null, "BlkioDeviceWriteIOps": null, "BlkioWeight": 0, "BlkioWeightDevice": null, "CapAdd": [ "AUDIT_WRITE", "CHOWN", "DAC_OVERRIDE", "FOWNER", "FSETID", "KILL", "MKNOD", "NET_BIND_SERVICE", "NET_RAW", "SETFCAP", "SETGID", "SETPCAP", "SETUID", "SYS_CHROOT" ], "CapDrop": [ "AUDIT_CONTROL", "BLOCK_SUSPEND", "DAC_READ_SEARCH", "IPC_LOCK", "IPC_OWNER", "LEASE", "LINUX_IMMUTABLE", "MAC_ADMIN", "MAC_OVERRIDE", "NET_ADMIN", "NET_BROADCAST", "SYSLOG", "SYS_ADMIN", "SYS_BOOT", "SYS_MODULE", "SYS_NICE", "SYS_PACCT", "SYS_PTRACE", "SYS_RAWIO", "SYS_RESOURCE", "SYS_TIME", "SYS_TTY_CONFIG", "WAKE_ALARM" ], "Capabilities": null, "Cgroup": "", "CgroupParent": "", "ConsoleSize": [ 0, 0 ], "ContainerIDFile": "", "CpuCount": 0, "CpuPercent": 0, "CpuPeriod": 0, "CpuQuota": 0, "CpuRealtimePeriod": 0, "CpuRealtimeRuntime": 0, "CpuShares": 0, "CpusetCpus": "", "CpusetMems": "", "DeviceCgroupRules": null, "DeviceRequests": null, "Devices": [], "Dns": null, "DnsOptions": null, "DnsSearch": null, "ExtraHosts": [], "GroupAdd": null, "IOMaximumBandwidth": 0, "IOMaximumIOps": 0, "IpcMode": "private", "Isolation": "", "KernelMemory": 0, "KernelMemoryTCP": 0, "Links": null, "LogConfig": { "Config": {}, "Type": "json-file" }, "MaskedPaths": [ "/proc/asound", "/proc/acpi", "/proc/kcore", "/proc/keys", "/proc/latency_stats", "/proc/timer_list", "/proc/timer_stats", "/proc/sched_debug", "/proc/scsi", "/sys/firmware" ], "Memory": 0, "MemoryReservation": 0, "MemorySwap": 0, "MemorySwappiness": null, "NanoCpus": 0, "NetworkMode": "bridge", "OomKillDisable": false, "OomScoreAdj": 0, "PidMode": "", "PidsLimit": null, "PortBindings": { "2389/tcp": [ { "HostIp": "", "HostPort": "2389" } ] }, "Privileged": false, "PublishAllPorts": false, "ReadonlyPaths": [ "/proc/bus", "/proc/fs", "/proc/irq", "/proc/sys", "/proc/sysrq-trigger" ], "ReadonlyRootfs": false, "RestartPolicy": { "MaximumRetryCount": 0, "Name": "no" }, "Runtime": "runc", "SecurityOpt": null, "ShmSize": 67108864, "UTSMode": "", "Ulimits": null, "UsernsMode": "", "VolumeDriver": "", "VolumesFrom": null }, "HostnamePath": "/var/lib/docker/containers/5e54c4851ee541d3a34c916bfd73250d9cb7f66cd02c1718cc3b559aa985710a/hostname", "HostsPath": "/var/lib/docker/containers/5e54c4851ee541d3a34c916bfd73250d9cb7f66cd02c1718cc3b559aa985710a/hosts", "Id": "5e54c4851ee541d3a34c916bfd73250d9cb7f66cd02c1718cc3b559aa985710a", "Image": "sha256:1f33947867f32f99bb6a4b769979107ec4b3312850896c66ece2ece00d414214", "LogPath": "/var/lib/docker/containers/5e54c4851ee541d3a34c916bfd73250d9cb7f66cd02c1718cc3b559aa985710a/5e54c4851ee541d3a34c916bfd73250d9cb7f66cd02c1718cc3b559aa985710a-json.log", "MountLabel": "", "Mounts": [], "Name": "/Plex_LDAP", "NetworkSettings": { "Bridge": "", "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "HairpinMode": false, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "MacAddress": "", "Networks": { "bridge": { "Aliases": null, "DriverOpts": null, "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "IPAMConfig": {}, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "Links": null, "MacAddress": "", "NetworkID": "1c4f5017b26a70b9fdfe88e54629b978843ded3eec0ebf18752d6a91885e38f7" } }, "Ports": {}, "SandboxID": "30be40de375e36b27a565273a6a543d50b1bf79c0dfbcc62c00637461f17e545", "SandboxKey": "/var/run/docker/netns/30be40de375e", "SecondaryIPAddresses": null, "SecondaryIPv6Addresses": null }, "Path": "run.sh", "Platform": "linux", "Portainer": { "ResourceControl": { "Id": 1, "ResourceId": "5e54c4851ee541d3a34c916bfd73250d9cb7f66cd02c1718cc3b559aa985710a", "SubResourceIds": [], "Type": 1, "UserAccesses": [], "TeamAccesses": [], "Public": false, "AdministratorsOnly": true, "System": false } }, "ProcessLabel": "", "ResolvConfPath": "/var/lib/docker/containers/5e54c4851ee541d3a34c916bfd73250d9cb7f66cd02c1718cc3b559aa985710a/resolv.conf", "RestartCount": 0, "State": { "Dead": false, "Error": "", "ExitCode": 1, "FinishedAt": "2020-01-23T21:32:43.213706802Z", "OOMKilled": false, "Paused": false, "Pid": 0, "Restarting": false, "Running": false, "StartedAt": "2020-01-23T21:32:43.303751908Z", "Status": "exited" } }

Starbix commented 4 years ago

My containers are x86 only. The Raspberry Pi however is ARM. I might explore multi-arch images in the future, however I'm quite busy at the moment.

Starbix commented 4 years ago

@TristBella Could you try the dev tag?

TristBella commented 4 years ago

Awesome! The error is gone and the container stays running. Thanks for your quick response!

TristBella commented 4 years ago

Just as an FYI, this image was deployed using Portainer that was installed using DockSTARTer.

Starbix commented 4 years ago

Thanks for you feedback! I'm currently working on a new repo structure (with each image having their own repo) so I can use Github Actions and let Github build and push the images (Including architectures other than amd64). This means the dev tag might suddenly stop working, however you'll be able to use the latest tag soon™.

I'll close this issue when arm architectures are available on the latest tag.