HOWTO
GitHub repo
https://github.com/dveselka/weblogic/tree/master/docker-compose-managed-server
Containers
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
bb6155b895af 12214-weblogic-domain-generic "/u01/oracle/contain…" 3 minutes ago Up 3 minutes 0.0.0.0:8001->8001/tcp managedserver
edc43bd0ce1c 12214-weblogic-domain-generic "/u01/oracle/contain…" 3 minutes ago Up 3 minutes 0.0.0.0:7001->7001/tcp, 0.0.0.0:9002->9002/tcp adminserver
Ping adminserver by hostname from managed server
$ docker exec -it managedserver /bin/bash
[oracle@bb6155b895af ~]$ ping adminserver
PING adminserver (172.19.0.2) 56(84) bytes of data.
64 bytes from adminserver.docker-compose-managed-server_wlsnet (172.19.0.2): icmp_seq=1 ttl=64 time=0.143 ms
64 bytes from adminserver.docker-compose-managed-server_wlsnet (172.19.0.2): icmp_seq=2 ttl=64 time=0.126 ms
Docker networks
[dave@dave ~]$ docker network ls
NETWORK ID NAME DRIVER SCOPE
f52862010f16 bridge bridge local
4d18d28369b0 docker-compose-managed-server_wlsnet bridge local
fc58b29d0364 docker-compose_wlsnet bridge local
f17fcc698c57 host host local
17497f49dcb2 none null local
Docker network for Weblogic servers
[dave@dave ~]$ docker inspect docker-compose-managed-server_wlsnet
[
{
"Name": "docker-compose-managed-server_wlsnet",
"Id": "4d18d28369b0ec5dae676239ab95a3f64a2389091f0b47929aec9ca19e4b958b",
"Created": "2021-02-13T08:46:13.300367764+01:00",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "172.19.0.0/16",
"Gateway": "172.19.0.1"
}
]
},
"Internal": false,
"Attachable": true,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"bb6155b895af6f96341d1526d6e08597b3aab2156e29e1b8f90f980b44f0d198": {
"Name": "managedserver",
"EndpointID": "455729a26be89f9d37dde62a8b4b8e8a8fccfe248ee2425e574fb6f82ffa7ecb",
"MacAddress": "02:42:ac:13:00:03",
"IPv4Address": "172.19.0.3/16",
"IPv6Address": ""
},
"edc43bd0ce1cee7f9d1b9cc9a32b9868396794a9b0e6ab32196ac32aec04ac31": {
"Name": "adminserver",
"EndpointID": "3744588006fc91c958625a115b2db839fe7dd5c601f774d9b648d717ba300dd9",
"MacAddress": "02:42:ac:13:00:02",
"IPv4Address": "172.19.0.2/16",
"IPv6Address": ""
}
},
"Options": {},
"Labels": {
"com.docker.compose.network": "wlsnet",
"com.docker.compose.project": "docker-compose-managed-server",
"com.docker.compose.version": "1.27.4"
}
}
]
Weblogic servers