diff --git a/daemon/container_operations_unix.go b/daemon/container_operations_unix.go index 954c194ea8..09b9b3f4bb 100644 --- a/daemon/container_operations_unix.go +++ b/daemon/container_operations_unix.go @@ -84,7 +84,7 @@ func (daemon *Daemon) getPidContainer(container *container.Container) (*containe containerID := container.HostConfig.PidMode.Container() container, err := daemon.GetContainer(containerID) if err != nil { - return nil, errors.Wrapf(err, "cannot join PID of a non running container: %s", container.ID) + return nil, errors.Wrapf(err, "cannot join PID of a non running container: %s", containerID) } return container, daemon.checkContainer(container, containerIsRunning, containerIsNotRestarting) }