2022-09-02 11:13:38 -07:00
|
|
|
% podman-network-disconnect 1
|
2020-11-11 09:45:07 -06:00
|
|
|
|
|
|
|
|
## NAME
|
|
|
|
|
podman\-network\-disconnect - Disconnect a container from a network
|
|
|
|
|
|
|
|
|
|
## SYNOPSIS
|
|
|
|
|
**podman network disconnect** [*options*] network container
|
|
|
|
|
|
|
|
|
|
## DESCRIPTION
|
2021-07-30 14:33:08 +02:00
|
|
|
Disconnects a container from a network. A container can be disconnected from a network by name or by ID.
|
2023-05-14 06:46:11 -04:00
|
|
|
If all networks are disconnected from the container, it behaves like a container created with `--network=none`
|
|
|
|
|
and it does not have network connectivity until a network is connected again.
|
2020-11-11 09:45:07 -06:00
|
|
|
|
2020-12-03 14:43:37 +01:00
|
|
|
|
2020-11-11 09:45:07 -06:00
|
|
|
## OPTIONS
|
2021-05-07 18:30:00 +02:00
|
|
|
#### **--force**, **-f**
|
2020-11-11 09:45:07 -06:00
|
|
|
|
|
|
|
|
Force the container to disconnect from a network
|
|
|
|
|
|
|
|
|
|
## EXAMPLE
|
|
|
|
|
|
2024-02-17 13:36:24 -05:00
|
|
|
Disconnect container from specified network:
|
2020-11-11 09:45:07 -06:00
|
|
|
```
|
|
|
|
|
podman network disconnect test web
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## SEE ALSO
|
2021-11-09 10:17:45 -05:00
|
|
|
**[podman(1)](podman.1.md)**, **[podman-network(1)](podman-network.1.md)**, **[podman-network-connect(1)](podman-network-connect.1.md)**
|
2020-11-11 09:45:07 -06:00
|
|
|
|
|
|
|
|
## HISTORY
|
|
|
|
|
November 2020, Originally compiled by Brent Baude <bbaude@redhat.com>
|