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
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

EXAMPLE

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

SEE ALSO

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

HISTORY

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