mirror of
https://github.com/containers/podman.git
synced 2025-10-17 19:24:04 +08:00

When trying to connect a container to a network and the connection already exists, an error should only be raised if the container is already running (or is in the `ContainerStateCreated` transition) to mimic the behavior of Docker as described here: https://github.com/containers/podman/pull/15516#issuecomment-1229265942 For running and connected containers 403 is returned which fixes #20365 Signed-off-by: Philipp Fruck <dev@p-fruck.de>