By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.
Create a user-defined bridge network with automatic DNS resolution to isolate and manage containers. docker network create
docker network ls
docker network create my-bridge
docker network rm my-bridge
docker network create --driver bridge --subnet 192.168.1.0/24 --gateway 192.168.1.1 my-bridge
--driver bridge
--subnet 192.168.1.0/24
--gateway 192.168.1.1
docker network create --driver bridge --subnet 192.168.1.0/24 --gateway 192.168.1.1 --ip-range 192.168.1.0/24 my-bridge
--ip-range 192.168.1.0/24
docker network create --driver bridge --subnet 192.168.1.0/24 --gateway 192.168.1.1 --ip-range 192.168.1.0/24 --ipam-driver default my-bridge
--ipam-driver default
docker network inspect my-bridge
• The default bridge network is named "bridge".• The default subnet for the default bridge network is 172.17.0.0/16.• The default gateway for the default bridge network is 172.17.0.1.• The default IP range for the default bridge network is 172.17.0.0/16.• The default IPAM driver for the default bridge network is "default".• ⚠️ The docker network create command will overwrite an existing network with the same name.• ⚠️ The docker network rm command will delete all containers attached to the network.• ⚠️ The docker network inspect command will display detailed information about the network.• The docker network ls command will list all networks.• The docker network create command will create a new network.
docker network create
docker network rm
docker network inspect
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.