Docker Community Forums

Share and learn in the Docker community.

Make a docker machine accessible from a local network

docker

(Rfichi) #1

Opaa,

I have a virtual machine running ubuntu server 14.04 LTS, i installed docker daemon and docker client there with no problem, i created a lots of containers to play around and get familiar with docker, now i want to start dockerizing my applications so according to this docker tutorial https://docs.docker.com/compose/django/ i should use docker-machine to start making all my configurations more easily, i follow step by step the tutorial and when i finally use the command docker-compose up everything start working as you can see here:

db_1  | LOG:  database system was shut down at 2016-04-19 12:12:00 UTC
db_1  | LOG:  MultiXact member wraparound protections are now enabled
db_1  | LOG:  database system is ready to accept connections
db_1  | LOG:  autovacuum launcher started
web_1 | Performing system checks...
web_1 |
web_1 | System check identified no issues (0 silenced).
web_1 |
web_1 | You have unapplied migrations; your app may not work properly until they are applied.
web_1 | Run 'python manage.py migrate' to apply them.
web_1 | April 19, 2016 - 12:12:45
web_1 | Django version 1.9.5, using settings 'composeexample.settings'
web_1 | Starting development server at http://0.0.0.0:8000/
web_1 | Quit the server with CONTROL-C. 

Now when i try to access the docker-machine-ip and port is not accessible, if i try to do a ping on that ip is not responding either.

Note: My local network is the regular 192.168.1.1

Im using Vmware and my VM network configuration is:

What am i missing? or what am i doing wrong?

Thanks in advance!