mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
794cd66df8
If the container binary to be run is removed in between runc create and runc start, the latter spits the following error: > can't exec user process: no such file or directory This is a bit confusing since we don't see what file is missing. Wrap the unix.Exec error into os.PathError, like in many other cases, to provide some context. Remove the error wrapping from (*linuxStandardInit).Init as it is now redundant. With this patch, the error is now: > exec /bin/false: no such file or directory Reported-by: Daniel J Walsh <dwalsh@redhat.com> Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>