Hi all,
I’ve encountered an issue trying to run my containers with the --init flag, it runs fine normally without the flag, however I need the flag to listen to SIGTERM signals within my application inside the container.
I’ve installed docker following this guide: http://blog.sdmoko.net/installation-docker-ce-on-openSUSE-Leap-42-3.html
Running containers with the --init flag causes
docker: Error response from daemon: exec: "docker-init": executable file not found in $PATH.
The output from docker info I get is:
Containers: 22
Running: 0
Paused: 0
Stopped: 22
Images: 298
Server Version: 17.09.1-ce
Storage Driver: btrfs
Build Version: Btrfs v4.5.3+20160729
Library Version: 101
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: oci runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 06b9cb35161009dcb7123345749fef02f7cea8e0
runc version: 3f2f8b84a77f73d38244dd690525642a72156c64
init version: N/A (expected: )
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.4.76-1-default
Operating System: openSUSE Leap 42.3
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.63GiB
Name: linux-fner
ID: SFB3:DMCE:NFY5:BOMU:IFVZ:OAVD:ZHGZ:FWKZ:2GSX:QKKY:XXCJ:MJ7B
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: No swap limit support
WARNING: No kernel memory limit support
I’ve noticed that init version is missing in the docker info output, do I need to install docker CE in a specific way for this to work?
Thanks for your help!