1podman-network-connect(1)()                        podman-network-connect(1)()
2
3
4

NAME

6       podman-network-connect - Connect a container to a network
7
8

SYNOPSIS

10       podman network connect [options] network container
11
12

DESCRIPTION

14       Connects  a  container  to a network. A container can be connected to a
15       network by name or by ID.  Once connected, the container  can  communi‐
16       cate with other containers in the same network.
17
18
19       This command is not available for rootless users.
20
21

OPTIONS

23   --alias
24       Add  network-scoped  alias  for the container.  If the network is using
25       the dnsname CNI plugin, these aliases can be used for  name  resolution
26       on  the  given  network.   Multiple --alias options may be specified as
27       input.
28
29

EXAMPLE

31       Connect a container named web to a network named test
32
33
34              podman network connect test web
35
36
37
38       Connect a container name web to a network named test with two  aliases:
39       web1 and web2
40
41
42              podman network connect --alias web1 --alias web2 test web
43
44
45

SEE ALSO

47       podman(1), podman-network(1), podman-network-disconnect(1), podman-net‐
48       work-inspect(1)
49
50

HISTORY

52       November 2020, Originally compiled  by  Brent  Baude  bbaude@redhat.com
53       ⟨mailto:bbaude@redhat.com⟩
54
55
56
57                                                   podman-network-connect(1)()
Impressum