Difference between revisions of "Docker network connect"

From wikieduonline
Jump to navigation Jump to search
 
Line 17: Line 17:
 
       --link-local-ip strings  Add a link-local address for the container
 
       --link-local-ip strings  Add a link-local address for the container
 
</pre>
 
</pre>
 +
 +
[[--link]]
  
 
== See also ==
 
== See also ==

Latest revision as of 15:52, 22 February 2023

docker network connect
docker network connect --help

Usage:	docker network connect [OPTIONS] NETWORK CONTAINER

Connect a container to a network

Options:
      --alias strings           Add network-scoped alias for the container
      --driver-opt strings      driver options for the network
      --ip string               IPv4 address (e.g., 172.30.100.104)
      --ip6 string              IPv6 address (e.g., 2001:db8::33)
      --link list               Add link to another container
      --link-local-ip strings   Add a link-local address for the container
--link

See also[edit]

Advertising: