Skip to content

Instantly share code, notes, and snippets.

@khaerulumam42
Last active December 20, 2021 04:21
Show Gist options
  • Save khaerulumam42/ba9a9486cc3ef6b412d42e35be807a6c to your computer and use it in GitHub Desktop.
Save khaerulumam42/ba9a9486cc3ef6b412d42e35be807a6c to your computer and use it in GitHub Desktop.
sudo docker network create tutorial
>>> a9487a8f771f607b4fe59f9e57580f5771a25fe6c606345844dee72ed8b12975
sudo docker network ls
>>> NETWORK ID NAME DRIVER SCOPE
>>> a9487a8f771f tutorial bridge local
sudo docker network inspect tutorial
>>> [
>>> {
>>> "Name": "tutorial",
>>> "Id": "a9487a8f771f607b4fe59f9e57580f5771a25fe6c606345844dee72ed8b12975",
>>> "Created": "2021-12-20T11:17:26.400406365+07:00",
>>> "Scope": "local",
>>> "Driver": "bridge",
>>> "EnableIPv6": false,
>>> "IPAM": {
>>> "Driver": "default",
>>> "Options": {},
>>> "Config": [
>>> {
>>> "Subnet": "172.25.0.0/16",
>>> "Gateway": "172.25.0.1"
>>> }
>>> ]
>>> },
>>> "Internal": false,
>>> "Attachable": false,
>>> "Ingress": false,
>>> "ConfigFrom": {
>>> "Network": ""
>>> },
>>> "ConfigOnly": false,
>>> "Containers": {},
>>> "Options": {},
>>> "Labels": {}
>>> }
>>> ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment