"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "daemon/errors.go" between
moby-20.10.6.tar.gz and moby-20.10.7.tar.gz

About: Moby is a framework to assemble specialized container systems (formerly project name Docker; see here to clarify the relationship between the projects).

errors.go  (moby-20.10.6):errors.go  (moby-20.10.7)
skipping to change at line 144 skipping to change at line 144
func translateContainerdStartErr(cmd string, setExitCode func(int), err error) e rror { func translateContainerdStartErr(cmd string, setExitCode func(int), err error) e rror {
errDesc := status.Convert(err).Message() errDesc := status.Convert(err).Message()
contains := func(s1, s2 string) bool { contains := func(s1, s2 string) bool {
return strings.Contains(strings.ToLower(s1), s2) return strings.Contains(strings.ToLower(s1), s2)
} }
var retErr = errdefs.Unknown(errors.New(errDesc)) var retErr = errdefs.Unknown(errors.New(errDesc))
// if we receive an internal error from the initial start of a container then lets // if we receive an internal error from the initial start of a container then lets
// return it instead of entering the restart loop // return it instead of entering the restart loop
// set to 127 for container cmd not found/does not exist) // set to 127 for container cmd not found/does not exist)
if contains(errDesc, cmd) && if contains(errDesc, "executable file not found") ||
(contains(errDesc, "executable file not found") || contains(errDesc, "no such file or directory") ||
contains(errDesc, "no such file or directory") || contains(errDesc, "system cannot find the file specified") ||
contains(errDesc, "system cannot find the file specified" contains(errDesc, "failed to run runc create/exec call") {
) ||
contains(errDesc, "failed to run runc create/exec call"))
{
setExitCode(127) setExitCode(127)
retErr = startInvalidConfigError(errDesc) retErr = startInvalidConfigError(errDesc)
} }
// set to 126 for container cmd can't be invoked errors // set to 126 for container cmd can't be invoked errors
if contains(errDesc, syscall.EACCES.Error()) { if contains(errDesc, syscall.EACCES.Error()) {
setExitCode(126) setExitCode(126)
retErr = startInvalidConfigError(errDesc) retErr = startInvalidConfigError(errDesc)
} }
// attempted to mount a file onto a directory, or a directory onto a file , maybe from user specified bind mounts // attempted to mount a file onto a directory, or a directory onto a file , maybe from user specified bind mounts
 End of changes. 1 change blocks. 
7 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)