Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I connect to a LAN machine service such as redis? #2202

Closed
sowork opened this issue Jul 11, 2019 · 2 comments
Closed

How do I connect to a LAN machine service such as redis? #2202

sowork opened this issue Jul 11, 2019 · 2 comments
Labels

Comments

@sowork
Copy link

sowork commented Jul 11, 2019

Info:

  • Docker version 18.09.2, build 6247962

  • Laradock commit: 63fc1fd

  • System info: windows PC

  • System info disto/version: Microsoft Windows [版本 10.0.18932.1000]

  • I created two containers php-fpm and nginx
  • My native IP is 192.168.1.12
  • I want the php-fpm container to connect to the redis service provided by one of the machines on the LAN
  • php-fpm container IP is 172.25.0.4
  • nginx container IP is laradock_frontend 172.24.0.3 laradock_backend 172.25.0.5
  • a LAN has two segments: 192.168.1.0/24 and 192.168.10.0/24, redis service on 192.168.10.0/24 network segment, my own machine is on the 192.168.1.0/24 network segment.

The document says that it can be configured as REDIS_HOST=redis

This is not suitable for me, I directly specify 192.168.10.244 display
Connection refused [tcp://192.168.10.244:6379]

what should I do?

@lanphan
Copy link
Contributor

lanphan commented Jul 19, 2019

Unfortunately it's not supported on Windows.
Docker has macvlan network (https://docs.docker.com/network/macvlan/) so that you can use it to access other machines on your LAN network. However, macvlan is not supported on Docker Desktop for Windows (https://docs.docker.com/network/network-tutorial-macvlan/)

@stale
Copy link

stale bot commented Feb 2, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale label Feb 2, 2020
@sowork sowork closed this as completed Feb 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants