Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • RHEL 7.4 Docker-latest problem with --init flag

    Posted on

    Hello,

    I've been trying to get some of my containers to work under RHEL 7.4 with the --init flag introduced in Docker 1.13. However, so far I could't get them running as soon as the flag is added.

    Docker info:

    Containers: 8
    Running: 7
    Paused: 0
    Stopped: 1
    Images: 8
    Server Version: 1.13.1
    Storage Driver: overlay2
    Backing Filesystem: xfs
    Supports d_type: true
    Native Overlay Diff: true
    Logging Driver: journald
    Cgroup Driver: systemd
    Plugins:
    Volume: local
    Network: bridge host macvlan null overlay
    Authorization: rhel-push-plugin
    Swarm: inactive
    Runtimes: runc docker-runc
    Default Runtime: docker-runc
    Init Binary: docker-init
    containerd version: 632fb3742751562ce7010a10945f5b7fe065f9c3 (expected: aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1)
    runc version: 632fb3742751562ce7010a10945f5b7fe065f9c3 (expected: 9df8b306d01f59d3a8029be411de015b7304dd8f)
    init version: N/A (expected: 949e6facb77383876aeff8a6944dde66b3089574)
    Security Options:
    seccomp
    WARNING: You're not using the default seccomp profile
    Profile: /etc/docker-latest/seccomp.json
    selinux
    Kernel Version: 3.10.0-693.2.2.el7.x86_64
    Operating System: Red Hat Enterprise Linux Server 7.4 (Maipo)
    OSType: linux
    Architecture: x86_64
    Number of Docker Hooks: 3
    CPUs: 8
    Total Memory: 7.639 GiB

    When I try to run a container with the --init flag, I receive the following error:

    Error response from daemon: exec: "docker-init": executable file not found in $PATH

    Which makes sense as "docker-init" simply is not present as it seems to be "docker-latest-init" in the docker-latest package. Even after adding /usr/libexec/docker (location of docker-latest-init) to $PATH the error stayed the same. I simply tried to change the name of "docker-init-latest" to "docker-init" which resulted in the container starting and immediately restarting. The logs then showed:

    "exec -- failed: No such file or directory"

    I completely removed docker and then tried out the latest Docker-CE which worked perfectly on the first try.
    Does anyone have any idea what I'm doing wrong?

    Thanks

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat