Doveps / mono

Code for Doveps projects
http://doveps.com
MIT License
0 stars 0 forks source link

02-19-2018 Report #101

Closed JosiahRegencia closed 6 years ago

JosiahRegencia commented 6 years ago

Tried to look for solutions to obtain the IP Address. Saw this one: https://github.com/Parallels/docker-machine-parallels/issues/53

it takes advantage of docker-machine. From what I read, :5000 seems to do the trick. However, I tried running docker-machine ls and it showed that there were no machines. So I moved on. And tried to get the IP Address of the container. Ended here:

http://networkstatic.net/10-examples-of-how-to-get-docker-container-ip-address/

docker inspect --format '{{ .NetworkSettings.IPAddress }}' CONTAINER ID gives the IP Address of the container. The IP for mono_savant was 172.17.0.2. I tried to use it but it does not seem to connect. The result is the one highlighted in white.

screenshot from 2018-02-19 21 31 36

greenmoss commented 6 years ago

Docker should allow you to expose the port, so that it is available on http://localhost:5000. I believe that is defined by the way you run the container. So for instance: docker run (something):5000.

For docker-machine, I think you don't need it because it's running natively on your Ubuntu system. docker-machine is for Mac/Windows IIRC. It's a VM with Docker on it.