x11docker: Docker binary for init missing in openSUSE.

x11docker ERROR: Docker startup seems to have failed! 

  Last lines of docker.log:
    27  export TERM=xterm
    28  export HOME=/home/jan
    29
    30  env > /x11docker/environment
    31  sed -i "/\(PWD=\|_=\)/d" /x11docker/environment
    32
    33  cd "$HOME"
    34
    35  exec $Dbus /usr/bin/kaptain /x11docker.kaptn >>/x11docker/stdout 2>>/x11docker/stderr
    36  # Ready for docker run

  Last lines of xterm.log:
Error: No such container: x11docker_X0_284fda_x11docker_kaptain
x11docker: container not ready on 8. attempt, trying again.
Error: No such container: x11docker_X0_284fda_x11docker_kaptain
x11docker: container not ready on 9. attempt, trying again.
Error: No such container: x11docker_X0_284fda_x11docker_kaptain
x11docker: container not ready on 10. attempt, trying again.
Error response from daemon: no such image: x11docker_X0_284fda_x11docker_kaptain: invalid reference format: repository name must be lowercase
x11docker: container IP:
x11docker: container PID:
Error: No such container: x11docker_X0_284fda_x11docker_kaptain

  Docker daemon messages:
Error response from daemon: Container 97c6d821f537ff2e6822c05444409cdbd4f6eae22495e439811b521575a80125 is not running
docker: Error response from daemon: exec: "docker-init": executable file not found in $PATH.
Error response from daemon: no such image: x11docker_X0_284fda_x11docker_kaptain: invalid reference format: repository name must be lowercase
 

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 66 (31 by maintainers)

Commits related to this issue

Most upvoted comments

A summarization about missing init in docker:

For unknown reasons, some docker packages are missing the init binary /usr/bin/docker-init. This is at least true for openSUSE, fedora, CentOS and deepin. This is a bug in docker package and should be reported to the distribution package maintainers. docker run --help shows option --init, but it fails.

My installation from docker repository shows:

$ docker --version
Docker version 18.03.1-ce, build 9ee9f40
$ docker-init --version
tini version 0.13.0 - git.949e6fa
$ docker run --help | grep " --init"
    --init        Run an init inside the container that forwards signals and reaps processes

tini is available on github: https://github.com/krallin/tini docker uses the statically linked https://github.com/krallin/tini/releases/download/v0.13.0/tini-static

Current solutions to get tini in container if docker run option --init fails: