mirror of
https://github.com/containers/podman.git
synced 2025-05-21 09:05:56 +08:00

Currently, when Podman restores a container into a Pod, it always fails with the following error: Error: cannot add container f96670b26e53e70f7f451191ea39a093c940c6c48b47218aeeef1396cb860042 to pod h2-pod: no such pod This error occurs because r.state.Pod() is called in setupContainer() with the Pod name instead of ID. This patch fixes this problem by setting ctrConfig.Pod to pod.ID(). Reported-by: Stanislav Kosorin <stanokosorin4@gmail.com> Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>