在 docker 上运行 localstack 时出现以下错误。
localstack_1 | 2019-08-06 21:07:03,019:API: 127.0.0.1 - - [06/Aug/2019 21:07:03] "PUT /namely-protorepo-descriptor-ops/protodefs/10/ximble/service.protoset HTTP/1.1" 200 -
localstack_1 | File "/opt/code/localstack/.venv/lib/python3.6/site-packages/requests/api.py", line 60, in request
localstack_1 | return session.request(method=method, url=url, **kwargs)
localstack_1 | File "/opt/code/localstack/.venv/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
localstack_1 | resp = self.send(prep, **send_kwargs)
localstack_1 | File "/opt/code/localstack/.venv/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
localstack_1 | r = adapter.send(request, **kwargs)
localstack_1 | File "/opt/code/localstack/.venv/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
localstack_1 | raise ConnectionError(e, request=request)
localstack_1 | requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=4563): Max retries exceeded with url: /namely-protorepo-descriptor-ops (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2fe08a70f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
这是我的码头工人撰写:
localstack:
image: localstack/localstack
ports:
- "4560-4590:4560-4590"
- "8055:8080"
environment:
- SERVICES=s3
- DEFAULT_REGION=us-east-1
- DEBUG=1