Hi,
I have installed RancherOS on a server in my local network. I deployed a hello-world webserver (nginxdemos/hello), but it seems not to be accessible from other machines in my local network.
As rancher@rancher i deployed with “docker run -P -d nginxdemos/hello”.
“docker ps” then returns:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9ffcf625ea65 nginxdemos/hello “nginx -g 'daemon of…” 11 minutes ago Up 11 minutes 0.0.0.0:32769->80/tcp sharp_ritchie
As is understand it, i have a wildcard, forwarding all host traffic to port 80 on my container. So this should be working for a test purpose.
And the output of “docker network inspect bridge”:
[
{
“Name”: “bridge”,
“Id”: “b5f1c9e0498405228c53851bee6a0414909f92e72a3169a81c5dba28f2600c5b”,
“Created”: “2019-12-12T19:13:08.327252277Z”,
“Scope”: “local”,
“Driver”: “bridge”,
“EnableIPv6”: false,
“IPAM”: {
“Driver”: “default”,
“Options”: null,
“Config”: [
{
“Subnet”: “172.17.0.0/16”
}
]
},
“Internal”: false,
“Attachable”: false,
“Ingress”: false,
“ConfigFrom”: {
“Network”: “”
},
“ConfigOnly”: false,
“Containers”: {
“9ffcf625ea650d1717ad74b2ac7f73060ea13a2ff7ddf603917fdbd3215c4ab6”: {
“Name”: “sharp_ritchie”,
“EndpointID”: “caa30bb3d86a30a4993052bda11b71fe3e8194f0ae6738a20e5b363791aef3c7”,
“MacAddress”: “02:42:ac:11:00:03”,
“IPv4Address”: “172.17.0.3/16”,
“IPv6Address”: “”
}
},
“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”: {}
}
]
Here my container is listed. Only thing i am missing is a gateway entry?
My overall goal, is beeing able to configer containers on my host server, to be accessible from the local network on specific ports.
This is my first shot on both, RancherOS and network configuration.
Thanks,
Valanthor