在使用Docker测试FASTdfs上传文件时,报错如下:
报错提示:
et = client.upload_by_filename(’/home/python/Desktop/aa.png’)
[-] Error: 111 connect to 192.168.118.128:22122. Connection refused.
[-] Error: 111 connect to 192.168.118.128:22122. Connection refused.
[-] Error: 111 connect to 192.168.118.128:22122. Connection refused.
[-] Error: 111 connect to 192.168.118.128:22122. Connection refused.
[-] Error: 111 connect to 192.168.118.128:22122. Connection refused.
[-] Error: 111 connect to 192.168.118.128:22122. Connection refused.
[-] Error: 111 connect to 192.168.118.128:22122. Connection refused.
[-] Error: 111 connect to 192.168.118.128:22122. Connection refused.
[-] Error: 111 connect to 192.168.118.128:22122. Connection refused.
[-] Error: 111 connect to 192.168.118.128:22122. Connection refused.
报错原因:由于服务尚未开启,因此进入Temminal中输入:
$ sudo docker container start tracker
$ sudo docker container start storage