Working with local filesystem and MySQL database in Docker, tensorflow, Windows 10 -


i switched new (windows 10) computer , need pick development doing in tensorflow. the way can find run tensorflow through docker, have working fine (a bit different linked article) docker run -d -p engineero/tensorflow:df_build (my image made modifying main repo's dockerfile pull in dependencies). have 2 remaining problems, however:

  1. i cannot figure out how use , modify existing jupyter notebooks in docker container run.
  2. i have no idea how connect mysql database have running on machine.

for 1 have tried adding -v /c/users/path/to/my/files:/tensorflow/my_files docker run command, /c/users/path/to/my/files/*:/tensorflow/my_files. both of these, /tensorflow/my_files directory in vm, empty. need able use existing notebooks (and other files) file system , have changes make these files persist on file system.

for 2, have no idea. mysql database running on windows localhost, if reference localhost in scripts connect database, try connect daemon (i think), not same: docker-machine ip not give me 127.0.0.1 (localhost perspective of windows), , ip/port have connect jupyter notebook other address docker-machine ip , docker ps -l.

any appreciated. if totally on wrong page, welcome discussion of right way go this. working through docker documentation now, far have not found solution.

edit: number 2 has been answered, number 1 still @ large.

i have not used docker on windows, cannot answer first question. however, answer second question. when run docker on windows/ mac, runs inside vm probable know already. when call docker run, creates container can considered vm (not vm, purposes only). so, when refer localhost inside container, try connect localhost inside container. overcome situation, should use ip address of vm (192.168.99.100 mac, guess it's same windows well), whatever ip address got docker-machine ip. if happen use linux, should use actual ip address of host.

i edited following based on comment. above true if running mysql in docker. if trying connect mysql running natively, should use actual ip address of pc (which can find using ipconfig on command prompt on windows) irrespective of os.

i not sure how familiar concept of vms. vms separate pcs, difference running inside pc. if want talk pc pc, easiest way using external ip address. p.s. should allow mysql accept remote connection. this link explains how it.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -