How do you disconnect a running container from a custom network named 'mynet'?
`podman network disconnect` detaches a running container's network interface from the named network without stopping it, satisfying the stem's requirement to disconnect while the container keeps running. The arguments are ordered network first, then container, matching `mynet` and `mycontainer` exactly as specified.
Why this answer
The `podman network disconnect` command removes a container from a specified network, taking the network name and container name as arguments. This is the exact syntax for detaching a running container from a custom network like 'mynet' without stopping it. It is the counterpart to `podman network connect`.
Exam trap
EX188 often tests whether candidates confuse `podman network remove` (deletes the network) with `podman network disconnect` (detaches a container), or whether they invent a `detach` verb that does not exist.
How to eliminate wrong answers
Option A is wrong because `podman container disconnect` is not a valid subcommand — network operations are grouped under `podman network`, not `podman container`. Option C is wrong because `podman network remove` deletes the entire network (and fails if containers are attached), rather than disconnecting a single container. Option D is wrong because `podman network detach` does not exist; the correct verb is `disconnect`.