가상 머신의 boot2docker vm에서 포트 차단

가상 머신의 boot2docker vm에서 포트 차단

나는 가지고있다Boot2Docker이미지가 VirtualBox내 Mac에서 실행됩니다. 나는 사용한다연 과학내 Mac에서 실행됩니다 docker.

가상 머신의 포트 activemq에서 도커를 실행했습니다 . 포트에 연결하는 애플리케이션을 실행 중입니다.32769boot2dockeractivemq32769

내 응용 프로그램에는 다음과 같은 오류가 무작위로 발생합니다.

[INFO] stompest.async.listener: Disconnected: Connection to the other side was lost in a non-clean fashion.
[ERROR] stompest.async.listener: Disconnect failure: Unexpected connection loss [Connection to the other side was lost in a non-clean fashion.]
[INFO] stompest.async.protocol: Connecting to 10.4.252.37:61613 ...
[-] Starting factory <stompest.async.protocol.StompFactory instance at 0x231afc8>
[WARNING] stompest.async.protocol: Could not connect to 10.4.252.37:61613 [Connection was refused by other side: 111: Connection refused.]
[INFO] stompest.async.protocol: Delaying connect attempt for 10 ms
[Uninitialized] Stopping factory <stompest.async.protocol.StompFactory instance at 0x117e6c8>
[INFO] stompest.async.protocol: Connecting to 192.168.99.100:32769 ...
[-] Starting factory <stompest.async.protocol.StompFactory instance at 0x7f8ca428ec68>
[-] Unhandled error in Deferred:
2016-05-31 10:12:20+0000 [-] Unhandled Error
Traceback (most recent call last):
 File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1128, in _inlineCallbacks

File "/usr/local/lib/python2.7/dist-packages/stompest-2.1.2-py2.7.egg/stompest/util/__init__.py", line 16, in __checkattr

 File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1274, in unwindGenerator

--- <exception caught here> ---
 File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1128, in _inlineCallbacks

 File "/usr/local/lib/python2.7/dist-packages/stompest.async-2.1.1-py2.7.egg/stompest/async/client.py", line 275, in subscribe

 File "/usr/local/lib/python2.7/dist-packages/stompest-2.1.2-py2.7.egg/stompest/protocol/session.py", line 125, in subscribe

stompest.error.StompProtocolError: Already subscribed [id=test]

문제를 재현하려면 포트를 차단 32769하고 다시 차단을 해제해야 했습니다.stompest다시 연결을 시도하고 동일한 오류가 발생합니다.

ifconfig가상 머신 을 확인했는데 boot2docker포트가 무작위로 생성되었습니다.

포트를 차단했다가 다시 차단을 해제할 수 있는 방법이 있나요?

관련 정보