binhex / arch-delugevpn

Docker build script for Arch Linux base with Deluge, Privoxy and OpenVPN
GNU General Public License v3.0
695 stars 112 forks source link

Bug: Unable to start container /usr/bin/tini no such file. #327

Closed billyjbryant closed 2 years ago

billyjbryant commented 2 years ago

Description

Since binhex/arch-delugevpn:2.1.1-1-02, attempts to launch the container result in the following error:

~$ sudo docker start -i deluge
ERRO[0004] error waiting for container: context canceled
Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "/usr/bin/tini": stat /usr/bin/tini: no such file or directory: unknown

Docker Config:

Click to Expand ``` [ { "Id": "0f174f36eef1a72d303a31c785fb7f991ed23bda24a4d1e0c3aadd908ce9caf0", "Created": "2022-09-30T12:15:33.106523809Z", "Path": "/usr/bin/tini", "Args": [ "-g", "--", "/bin/bash", "/usr/local/bin/init.sh" ], "State": { "Status": "created", "Running": false, "Paused": false, "Restarting": false, "OOMKilled": false, "Dead": false, "Pid": 0, "ExitCode": 127, "Error": "OCI runtime create failed: container_linux.go:367: starting container process caused: exec: \"/usr/bin/tini\": stat /usr/bin/tini: no such file or directory: unknown", "StartedAt": "0001-01-01T00:00:00Z", "FinishedAt": "0001-01-01T00:00:00Z", "StartedTs": -62135596800, "FinishedTs": -62135596800 }, "Image": "sha256:ef66c60e791cd31ababb93073d2088e63c565e1384645147f06991a868fbae0b", "ResolvConfPath": "/volume1/@docker/containers/0f174f36eef1a72d303a31c785fb7f991ed23bda24a4d1e0c3aadd908ce9caf0/resolv.conf", "HostnamePath": "/volume1/@docker/containers/0f174f36eef1a72d303a31c785fb7f991ed23bda24a4d1e0c3aadd908ce9caf0/hostname", "HostsPath": "/volume1/@docker/containers/0f174f36eef1a72d303a31c785fb7f991ed23bda24a4d1e0c3aadd908ce9caf0/hosts", "LogPath": "/volume1/@docker/containers/0f174f36eef1a72d303a31c785fb7f991ed23bda24a4d1e0c3aadd908ce9caf0/log.db", "Name": "/deluge", "RestartCount": 0, "Driver": "btrfs", "Platform": "linux", "MountLabel": "", "ProcessLabel": "", "AppArmorProfile": "docker-default", "ExecIDs": null, "HostConfig": { "Binds": [ "/volumeUSB1/usbshare/data:/data", "/volume1/docker/delugevpn:/config" ], "ContainerIDFile": "", "LogConfig": { "Type": "db", "Config": {} }, "NetworkMode": "bridge", "PortBindings": { "58846/tcp": [ { "HostIp": "", "HostPort": "58846" } ], "58946/tcp": [ { "HostIp": "", "HostPort": "58946" } ], "58946/udp": [ { "HostIp": "", "HostPort": "58946" } ], "8112/tcp": [ { "HostIp": "", "HostPort": "8112" } ], "8118/tcp": [ { "HostIp": "", "HostPort": "8118" } ] }, "RestartPolicy": { "Name": "always", "MaximumRetryCount": 0 }, "AutoRemove": false, "VolumeDriver": "", "VolumesFrom": null, "CapAdd": [ "AUDIT_WRITE", "CHOWN", "DAC_OVERRIDE", "FOWNER", "FSETID", "KILL", "MKNOD", "NET_ADMIN", "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_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" ], "CgroupnsMode": "host", "Dns": [], "DnsOptions": [], "DnsSearch": [], "ExtraHosts": [], "GroupAdd": null, "IpcMode": "private", "Cgroup": "", "Links": null, "OomScoreAdj": 0, "PidMode": "", "Privileged": false, "PublishAllPorts": false, "ReadonlyRootfs": false, "SecurityOpt": null, "UTSMode": "", "UsernsMode": "", "ShmSize": 67108864, "Runtime": "runc", "Env": [ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "HOME=/home/nobody", "TERM=xterm", "LANG=en_GB.UTF-8", "LAN_NETWORK=172.17.0.0/16", "VPN_PASS=xxx", "VPN_USER=xxx", "VPN_CLIENT=openvpn", "VPN_PROV=PIA", "VPN_ENABLED=yes", "DEBUG=true", "UMASK=000", "STRICT_PORT_FORWARD=yes", "NAME_SERVERS=1.1.1.1,192.168.4.1", "PGID=65536", "PUID=1027", "TZ=America/Los_Angeles 1028" ], "ConsoleSize": [ 0, 0 ], "Isolation": "", "CpuShares": 50, "Memory": 0, "NanoCpus": 0, "CgroupParent": "", "BlkioWeight": 0, "BlkioWeightDevice": null, "BlkioDeviceReadBps": null, "BlkioDeviceWriteBps": null, "BlkioDeviceReadIOps": null, "BlkioDeviceWriteIOps": null, "CpuPeriod": 0, "CpuQuota": 0, "CpuRealtimePeriod": 0, "CpuRealtimeRuntime": 0, "CpusetCpus": "", "CpusetMems": "", "Devices": [], "DeviceCgroupRules": null, "DeviceRequests": null, "KernelMemory": 0, "KernelMemoryTCP": 0, "MemoryReservation": 0, "MemorySwap": 0, "MemorySwappiness": null, "OomKillDisable": false, "PidsLimit": null, "Ulimits": null, "CpuCount": 0, "CpuPercent": 0, "IOMaximumIOps": 0, "IOMaximumBandwidth": 0, "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" ], "ReadonlyPaths": [ "/proc/bus", "/proc/fs", "/proc/irq", "/proc/sys", "/proc/sysrq-trigger" ], "Init": false }, "GraphDriver": { "Data": null, "Name": "btrfs" }, "Mounts": [ { "Type": "bind", "Source": "/volume1/docker/delugevpn", "Destination": "/config", "Mode": "", "RW": true, "Propagation": "rprivate" }, { "Type": "bind", "Source": "/volumeUSB1/usbshare/data", "Destination": "/data", "Mode": "", "RW": true, "Propagation": "rprivate" } ], "Config": { "Hostname": "deluge", "Domainname": "", "User": "", "AttachStdin": false, "AttachStdout": false, "AttachStderr": false, "ExposedPorts": { "58846/tcp": {}, "58946/tcp": {}, "58946/udp": {}, "8112/tcp": {}, "8118/tcp": {} }, "Tty": false, "OpenStdin": false, "StdinOnce": false, "Env": [ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "HOME=/home/nobody", "TERM=xterm", "LANG=en_GB.UTF-8", "LAN_NETWORK=172.17.0.0/16", "VPN_PASS=xxx", "VPN_USER=xxx", "VPN_CLIENT=openvpn", "VPN_PROV=PIA", "VPN_ENABLED=yes", "DEBUG=true", "UMASK=000", "STRICT_PORT_FORWARD=yes", "NAME_SERVERS=1.1.1.1,192.168.4.1", "PGID=65536", "PUID=1027", "TZ=America/Los_Angeles 1028" ], "Cmd": [ "/bin/bash", "/usr/local/bin/init.sh" ], "Image": "binhex/arch-delugevpn:latest", "Volumes": { "/config": {}, "/data": {} }, "WorkingDir": "", "Entrypoint": [ "/usr/bin/tini", "-g", "--" ], "OnBuild": null, "Labels": { "org.opencontainers.image.authors": "= binhex", "org.opencontainers.image.source": "= https://github.com/binhex/arch-delugevpn" }, "DDSM": false }, "NetworkSettings": { "Bridge": "", "SandboxID": "022c6497ef752ffd96880169dd8918d5df23d6abc4867eafa5e2be4ba19c8ece", "HairpinMode": false, "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "Ports": {}, "SandboxKey": "/var/run/docker/netns/022c6497ef75", "SecondaryIPAddresses": null, "SecondaryIPv6Addresses": null, "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "MacAddress": "", "Networks": { "bridge": { "IPAMConfig": null, "Links": null, "Aliases": null, "NetworkID": "4714c8708ce3f977b62590073e6ac3190f76aecc91c670cd8d2f9c4bd827213f", "EndpointID": "", "Gateway": "", "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "MacAddress": "", "DriverOpts": null } } } } ] ```

Starting with binhex/arch-delugevpn:2.1.0-1-01 does not have this same issue. The container starts with no issues.

billyjbryant commented 2 years ago

Saw that 7e3b790044 switched from tini to dumb-init. Removed the call to /usr/bin/tini from the container Entrypoint which resolved this issue. Closing issue.

theotherp commented 2 years ago

I don't have any references to tini in my docker-compose.yml. What do I do here?