Open ghost opened 6 years ago
Hello, 192.168.56.1 is the default VirtualBox host-only interface’s IP-address. While it seems inconvenient to define it explicitly, I would say it is just the sane default that I set, because I’m not sure that anyone should ever expose ports to all interfaces. At the same time if your host-only iface doesn’t have an 192.168.56.1 ip, you gotta change config files anyway. But I do not insist on my approach, so it is up to @blacktop.
Per doc; have Vboxweb running, have interface @192.168.65.1
Cannot bind to 192.168.56.1:2402
I have seen weird behavior running docker as root in the past. It sounds like @0xpookie (or @pooki3bear when they are not at work? 😉) is running it the same way you were running it right @ilyaglow ?
We could add more automation around detecting the VirtBox IP and auto setting it inside the container?
We could also auto set config based on env vars like I'm doing here: https://github.com/blacktop/docker-kafka-alpine/blob/master/1.0/scripts/configure-kafka.sh#L56
Sure, we can use env and pass it to an entrypoint script, which will do the stuff needed. The same approach could be applied for setting up vboxweb ip and user/pass pair.
怎么扫描
incorrect IP bind in docker-compose.vbox.yml, see below. changing to 2042:2042 in the Dockerfile resolves.