gpt4 book ai didi

docker - 我无法从使用docker运行的localstack获取dynamoDB表的列表

转载 作者:行者123 更新时间:2023-12-02 18:21:45 27 4
gpt4 key购买 nike

我在Docker容器中安装了localstack和awscli。
我运行不同的aws命令来列出流和存储桶,但是当我尝试列出dynamoDB表时(如下所示),它失败了:

aws --region us-east-1 --endpoint-url=http://localhost:4569 dynamodb list-tables

这是我得到的错误:
2018-07-12T09:26:35:ERROR:localstack.services.generic_proxy: Error forwarding request: HTTPConnectionPool(host='127.0.0.1', port=4564): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f68941a43d0>: Failed to establish a new connection: [Errno 111] Connection refused',)) Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/localstack/services/generic_proxy.py", line 201, in forward
headers=forward_headers)
File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 112, in post
return request('post', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 508,in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 618,in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/adapters.py", line 508,in send
raise ConnectionError(e, request=request)
ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=4564): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f68941a43d0>: Failed to establish a new connection: [Errno 111] Connection refused',))

我在互联网上找不到解决我问题的任何回应。

如果有人有任何线索或想法,我将很感激。

提前致谢

最佳答案

如果要在localstack上查看Dynamo数据库,则可以安装Commandeer,它为您提供本地和AWS的UI。 https://getcommandeer.com

关于docker - 我无法从使用docker运行的localstack获取dynamoDB表的列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51302418/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com