From a881ccb73d87680871fd29ce991e8e55db790673 Mon Sep 17 00:00:00 2001 From: zeus Date: Fri, 4 Mar 2022 16:43:56 +0200 Subject: [PATCH] add cloud info --- .../modules/ROOT/pages/admin.adoc | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/CloudComputing_Lab/modules/ROOT/pages/admin.adoc b/CloudComputing_Lab/modules/ROOT/pages/admin.adoc index 464982f..d609da7 100644 --- a/CloudComputing_Lab/modules/ROOT/pages/admin.adoc +++ b/CloudComputing_Lab/modules/ROOT/pages/admin.adoc @@ -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