Set ContainerPid when running container in foreground mode