Merge 8073427f76
into cf4e5ee903
This commit is contained in:
commit
a864947b19
1 changed files with 4 additions and 0 deletions
|
@ -490,6 +490,10 @@ func (s *Server) createSandboxContainer(ctx context.Context, containerID string,
|
|||
// Join the namespace paths for the pod sandbox container.
|
||||
podInfraState := s.runtime.ContainerStatus(sb.infraContainer)
|
||||
|
||||
if podInfraState == nil {
|
||||
return nil, fmt.Errorf("state of infra container of given sandbox: %q is nil, which is unexpected", sb.metadata.GetName())
|
||||
}
|
||||
|
||||
logrus.Debugf("pod container state %+v", podInfraState)
|
||||
|
||||
ipcNsPath := fmt.Sprintf("/proc/%d/ns/ipc", podInfraState.Pid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue