|
|
@ -146,6 +146,43 @@ docker volume ls |
|
|
|
---- |
|
|
|
|
|
|
|
|
|
|
|
== Network |
|
|
|
|
|
|
|
Creates a new network. The DRIVER accepts *bridge* or *overlay* which are the built-in network drivers. |
|
|
|
|
|
|
|
=== create bridge network |
|
|
|
|
|
|
|
[source,sh] |
|
|
|
---- |
|
|
|
docker network create -d bridge my-network |
|
|
|
---- |
|
|
|
|
|
|
|
=== create overlay network |
|
|
|
|
|
|
|
[source,sh] |
|
|
|
---- |
|
|
|
docker network create -d overlay my-network |
|
|
|
---- |
|
|
|
|
|
|
|
=== create with advanced options |
|
|
|
|
|
|
|
[source,sh] |
|
|
|
---- |
|
|
|
docker network create \ |
|
|
|
--driver=bridge \ |
|
|
|
--subnet=172.28.0.0/16 \ |
|
|
|
--ip-range=172.28.5.0/24 \ |
|
|
|
--gateway=172.28.5.254 \ |
|
|
|
mybr |
|
|
|
---- |
|
|
|
|
|
|
|
=== list |
|
|
|
|
|
|
|
[source,sh] |
|
|
|
---- |
|
|
|
docker network ls |
|
|
|
---- |
|
|
|
|
|
|
|
== Inspect |
|
|
|
|
|
|
|
Low-level information on Docker objects |
|
|
|