diff --git a/libcontainer/mount_linux.go b/libcontainer/mount_linux.go index 06df6cbbf..82ef0fdf1 100644 --- a/libcontainer/mount_linux.go +++ b/libcontainer/mount_linux.go @@ -110,7 +110,7 @@ func (e *mountError) Error() string { if e.source != "" { out += "src=" + e.source + ", " - if e.srcFile != nil { + if e.srcFile != nil && e.srcFile.file != nil { out += "srcType=" + string(e.srcFile.Type) + ", " out += "srcFd=" + strconv.Itoa(int(e.srcFile.file.Fd())) + ", " }