clearcontainers / runtime

OCI (Open Containers Initiative) compatible runtime using Virtual Machines
Apache License 2.0
589 stars 70 forks source link

Using a config file with both initrd= and image= defined will cause docker to hang #1102

Closed jodh-intel closed 6 years ago

jodh-intel commented 6 years ago

(Raising an issue so that other users are able to find the solution to this problem)

If you run a command like this:

$ sudo docker run -ti busybox sh

And it hangs and you also see this:

$ sudo journalctl -t kata-proxy |grep -m 1 -i cannot
May 17 17:27:25 artful kata-proxy[13710]: time="2018-05-17T17:27:25.503479797+01:00" level=info msg="[    0.667228] VFS: Cannot open root device \"pmem0p1\" or unknown-block(0,0): error -6\n" name=kata-proxy pid=13710 source=agent

... then the issue is that your configuration.toml has an init= and an image= option defined. That does not work, so please follow the instructions carefully in the Developer Guide here:

jodh-intel commented 6 years ago

Oops - wrong repo - see https://github.com/kata-containers/runtime/issues/318 ;)