.nh .TH podman\-network\-connect(1) .SH NAME .PP podman\-network\-connect \- Connect a container to a network .SH SYNOPSIS .PP \fBpodman network connect\fP [\fIoptions\fP] network container .SH DESCRIPTION .PP Connects a container to a network. A container can be connected to a network by name or by ID. Once connected, the container can communicate with other containers in the same network. .PP This command is not available for rootless users. .SH OPTIONS .SS \fB\-\-alias\fP .PP Add network\-scoped alias for the container. If the network is using the \fB\fCdnsname\fR CNI plugin, these aliases can be used for name resolution on the given network. Multiple \fI\-\-alias\fP options may be specified as input. .SH EXAMPLE .PP Connect a container named \fIweb\fP to a network named \fItest\fP .PP .RS .nf podman network connect test web .fi .RE .PP Connect a container name \fIweb\fP to a network named \fItest\fP with two aliases: web1 and web2 .PP .RS .nf podman network connect \-\-alias web1 \-\-alias web2 test web .fi .RE .SH SEE ALSO .PP podman(1), podman\-network(1), podman\-network\-disconnect(1), podman\-network\-inspect(1) .SH HISTORY .PP November 2020, Originally compiled by Brent Baude bbaude@redhat.com \[la]mailto:bbaude@redhat.com\[ra]