728x90
도커 네트워크(bridge) 생성
- https://docs.docker.com/engine/reference/commandline/network_create/
docker network ls
$ docker network ls
NETWORK ID NAME DRIVER SCOPE
6796a63d6574 bridge bridge local
3edc63ab63b3 host host local
54bcfe43a226 none null local
docker network inspect NETWORK_ID
$ docker network inspect 6796a63d6574
[
{
"Name": "bridge",
"Id": "6796a63d657459c976414bb6e85be17a6772ac4c23e45b2dd3af180ebf9f8446",
"Created": "2021-11-15T16:05:18.7966082+09:00",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "172.17.0.0/16",
"Gateway": "172.17.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {},
"Options": {
"com.docker.network.bridge.default_bridge": "true",
"com.docker.network.bridge.enable_icc": "true",
"com.docker.network.bridge.enable_ip_masquerade": "true",
"com.docker.network.bridge.host_binding_ipv4": "0.0.0.0",
"com.docker.network.bridge.name": "docker0",
"com.docker.network.driver.mtu": "1500"
},
"Labels": {}
}
]
네트워크(bridge) 생성
docker network create --driver=bridge --subnet=172.13.0.0/16 --gateway=172.13.0.1 elastic-cluster-net
$ docker network create --driver=bridge --subnet=172.13.0.0/16 --gateway=172.13.0.1 elastic-cluster-net
ef600adb3d4e73e68d99177fe2f937defb97630c11118574d802f8f1098fb536
docker network ls
$ docker network ls
NETWORK ID NAME DRIVER SCOPE
6796a63d6574 bridge bridge local
ef600adb3d4e elastic-cluster-net bridge local
3edc63ab63b3 host host local
54bcfe43a226 none null local
docker network inspect elastic-cluster-net
$ docker network inspect elastic-cluster-net
[
{
"Name": "elastic-cluster-net",
"Id": "ef600adb3d4e73e68d99177fe2f937defb97630c11118574d802f8f1098fb536",
"Created": "2021-11-17T10:53:17.140983353+09:00",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": {},
"Config": [
{
"Subnet": "172.13.0.0/16",
"Gateway": "172.13.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {},
"Options": {},
"Labels": {}
}
]
728x90
'리눅스' 카테고리의 다른 글
iostat 명령어 (0) | 2021.11.18 |
---|---|
FTPS(FTP + SSL/TLS) 서버를 구성하는 방법(vsftpd) (0) | 2021.11.18 |
[draft] docker를 사용한 kafka 클러스터 설정 (0) | 2021.11.16 |
JVM(JAVA) Option의 목록과 설명 (0) | 2021.11.11 |
[리눅스] SWAP Memory (0) | 2021.11.11 |