Docker Network Operations: Difference between revisions
Jump to navigation
Jump to search
Line 21: | Line 21: | ||
[--gateway=172.29.5.253] \ | [--gateway=172.29.5.253] \ | ||
<''user-defined-bridge-network-name''> | <''user-defined-bridge-network-name''> | ||
Options: | |||
* <span id='User-Defined_Bridge_Network_Subnet''></span>'''subnet''' | |||
* <span id='User-Defined_Bridge_Network_IP_Range''></span>'''ip-range''' | |||
* <span id='User-Defined_Bridge_Network_Gateway''></span>'''gateway''' | |||
=Remove a User-Defined Bridge Network= | =Remove a User-Defined Bridge Network= | ||
docker network rm <''user-defined-bridge-network-name''> | docker network rm <''user-defined-bridge-network-name''> |
Revision as of 16:38, 30 April 2018
Internal
Overview
List Networks
docker network ls
Create a New User-Defined Bridge Network
Command creates a user-defined bridge network:
docker network create \ [--driver=bridge] \ [--subnet=172.29.0.0/16] \ [--ip-range=172.28.5.0/24 ] \ [--gateway=172.29.5.253] \ <user-defined-bridge-network-name>
Options:
- subnet
- ip-range
- gateway
Remove a User-Defined Bridge Network
docker network rm <user-defined-bridge-network-name>