Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libpod: store network status when userns is used
When a container with a userns is created the network setup is special. Normally the netns is setup before the oci runtime container is created, however with a userns the container is created first and then the network is setup. In the second case we never saved the container state afterwards. Because of it, podman inspect would not show the network info and network teardown will not happen. This worked with local podman because there was a save() call later in the code path which then also saved the network status. But in the podman API code path this save never happened thus all containers started via API had this problem. Fixes containers#14465 Signed-off-by: Paul Holzinger <[email protected]>
- Loading branch information