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

OPTIONS

20   --alias=name
21       Add  network-scoped  alias  for the container.  If the network is using
22       the dnsname CNI plugin, these aliases can be used for  name  resolution
23       on the given network.  Multiple --alias options may be specified as in‐
24       put.  NOTE: A container will only have access to aliases on  the  first
25       network  that it joins.  This is a limitation that will be removed in a
26       later release.
27
28
29   --ip=address
30       Set a static ipv4 address for this container on this network.
31
32
33   --ip6=address
34       Set a static ipv6 address for this container on this network.
35
36
37   --mac-address=address
38       Set a static mac address for this container on this network.
39
40

EXAMPLE

42       Connect a container named web to a network named test
43
44
45              podman network connect test web
46
47
48
49       Connect a container name web to a network named test with two  aliases:
50       web1 and web2
51
52
53              podman network connect --alias web1 --alias web2 test web
54
55
56
57       Connect a container name web to a network named test with a static ip.
58
59
60              podman network connect --ip 10.89.1.13 test web
61
62
63

SEE ALSO

65       podman(1), podman-network(1), podman-network-disconnect(1)
66
67

HISTORY

69       November  2020,  Originally  compiled  by Brent Baude bbaude@redhat.com
70       ⟨mailto:bbaude@redhat.com⟩
71
72
73
74                                                   podman-network-connect(1)()
Impressum