docker network disconnect my-network my-container

Meaning: Disconnects a container from a specific network. Usage: To remove network access from a container. Example: docker network disconnect my-network my-container disconnects my-container from my-network.