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

docker network ping 문제 #3

Closed
yoseplee opened this issue Jul 20, 2019 · 6 comments
Closed

docker network ping 문제 #3

yoseplee opened this issue Jul 20, 2019 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@yoseplee
Copy link
Owner

현재 시도: 호스트 os의 rmi client에서 컨테이너 rmi 서버에 요청 보내기

문제상황: 맥에서는 안되는 것으로 확인
moby/moby#22753

포트 포워딩 방식도 고려하였으나, rmi클라이언트에서 제공되는 api중 포트 포워딩 notation을 지원하지 않음(...)

@yoseplee
Copy link
Owner Author

따라서 dockerlize는 추후 리눅스 머신에서 돌리는 것으로 하고, 현재로써는 블록체인 네트워크의 피어를 만드는 것을 진행한다

@yoseplee
Copy link
Owner Author

커스텀 bridge를 만들어 사용하는 방법은 시도해보진 않았으나 시도해 볼 가치는 있음

@yoseplee
Copy link
Owner Author

yoseplee commented Jul 21, 2019

커스텀 bridge를 만들어 시도해 보았으나 안됨

https://doitnow-man.tistory.com/183

도커 내부에서의 세팅은 되나, 도커 내부에서 생성한 network(bridge)가 os레벨에서 막혀있는 듯 하다.
brctl show가 먹히지 않는 것이 대표적인 현상

@yoseplee
Copy link
Owner Author

nmap을 사용하여 핑 확인하기

$ sudo nmap -p 32120 127.0.0.1 -PO
  • -p 포트 옵션
  • -PO 핑 옵션

핑 옵션의 경우 sudo가 필요하다

@yoseplee
Copy link
Owner Author

Ubuntu linux에서는 아주 잘 돌아감

오늘 랩 데스크탑 환경에서 확인 완료하였음
따라서 맥 환경에서는 분산 환경 테스트가 어렵다는 결론임

추후 맥 환경에서도 가능하도록 조치할 수도 있겠으나 지금으로써는 고려하지 않음으로 이 이슈를 닫는다

@yoseplee
Copy link
Owner Author

공인 IP에서 실행시, 자신의 IP주소를 넣어줘야 외부에서 접근 가능하다

서버 실행시 아래 옵션을 추가한다

-Djava.rmi.server.hostname=host_name_or_public_ip
# java -Djava.rmi.server.hostname=111.111.111 java.rmi.Server &

https://stackoverflow.com/questions/3044590/java-rmi-cannot-connect-to-host-from-external-client

@yoseplee yoseplee self-assigned this Aug 1, 2019
@yoseplee yoseplee added the bug Something isn't working label Aug 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant