docker:为什么无法连接到seed

docker:为什么无法连接到seed,docker,aerospike,Docker,Aerospike,我运行以下docker命令。我不明白为什么失败了。你能告诉我如何调试这个吗?谢谢 $ docker run -v `pwd`:/share -ti --name aerospike-aql --rm aerospike/aerospike-tools aql --host 192.168.1.191 --no-config-file Unable to find image 'aerospike/aerospike-tools:latest' locally latest: Pulling fr

我运行以下docker命令。我不明白为什么失败了。你能告诉我如何调试这个吗?谢谢

$ docker run -v `pwd`:/share -ti --name aerospike-aql --rm aerospike/aerospike-tools aql --host 192.168.1.191 --no-config-file
Unable to find image 'aerospike/aerospike-tools:latest' locally
latest: Pulling from aerospike/aerospike-tools
6ec7b7d162b2: Pull complete 
177617b11d13: Pull complete 
10273812b9e3: Pull complete 
ac553cdb1df6: Pull complete 
d633ea8cb425: Pull complete 
1f91817a9ef3: Pull complete 
403620a9a728: Pull complete 
3a80741c7bbc: Pull complete 
Digest: sha256:109801d7e8440dcf53461b13b55eaa96c1f86482209691285a34c6bb2fee4e1d
Status: Downloaded newer image for aerospike/aerospike-tools:latest
Seed:         192.168.1.191
User:         None
Config File:  None
2021-01-16 02:46:44 WARN Failed to connect to seed 192.168.1.191 3000. AEROSPIKE_ERR_CONNECTION Socket write error: 111, 192.168.1.191:3000
Error -10: Failed to connect

要添加到Micah的评论中,我可以建议再次运行服务器映像,然后使用下面的命令,该命令不使用硬编码主机IP 192.168.1.191,而是从设置中提取它:

$ docker run --rm -tid --name aerospike -p 3000:3000 -p 3001:3001 -p 3002:3002 -p 3003:3003 aerospike/aerospike-server


$ docker run -v `pwd`:/share -ti --name aerospike-aql --rm aerospike/aerospike-tools aql --host $(docker inspect -f '{{.NetworkSettings.IPAddress }}' aerospike) --no-config-file

您是否有运行在192.168.1.191端口3000上的Aerospike服务器?如果是这样,请仔细检查该实例上的日志,以验证它是否正在运行。