LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

docker-network

manage container networking and connectivity

TLDR

List networks
$ docker network ls
copy
Create a network
$ docker network create [name]
copy
Create bridge network with subnet
$ docker network create --driver bridge --subnet [192.168.1.0/24] [name]
copy
Connect container to network
$ docker network connect [network] [container]
copy
Disconnect container
$ docker network disconnect [network] [container]
copy
Inspect network
$ docker network inspect [network]
copy
Remove network
$ docker network rm [network]
copy

SYNOPSIS

docker network command [options]

DESCRIPTION

docker network manages Docker networks. Networks enable communication between containers. Supports bridge, host, overlay, and macvlan drivers. Containers on the same user-defined network can communicate using container names as hostnames, providing service discovery. Custom networks isolate containers and provide better security than the default bridge network.

SUBCOMMANDS

ls

List networks.
create
Create a network.
rm
Remove networks.
inspect
Display detailed information.
connect
Connect container to network.
disconnect
Disconnect container from network.
prune
Remove unused networks.

INSTALL

sudo apt install docker-cli
copy
sudo dnf install docker-cli
copy
sudo pacman -S docker
copy
sudo apk add docker-cli
copy
sudo zypper install docker
copy
brew install docker
copy
nix profile install nixpkgs#docker
copy

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid