1podman-network-connect(1)   General Commands Manual  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 has DNS en‐
22       abled (podman network inspect -f {{.DNSEnabled}} <NAME>), these aliases
23       can be used for name resolution on the given network.  Multiple --alias
24       options may be specified as input.  NOTE: When using  CNI  a  container
25       will  only  have  access to aliases on the first network that it joins.
26       This limitation does not exist with netavark/aardvark-dns.
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-inspect(1),  podman-net‐
66       work-disconnect(1)
67
68

HISTORY

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