chaosblade
chaosblade copied to clipboard
chaos-tool偶尔连接不上docker.sock
Issue Description
创建实验的时候,chaos-tool偶现链接不上docker,删除chaos-tool之后,重新拉起一个新的chaos-tool可以创建。
Describe what you expected to happen
创建实验的时候不应该出现docker.sock不能链接的情况。
How to reproduce it (as minimally and precisely as possible)
- 进入chaos-tool容器,选取一个容器,执行类似如下命令。
/opt/chaosblade/blade create docker network delay --timeout=1800 --time=4800 --remote-port=9092 --interface=eth0 --image-repo chaosbladeio/chaosblade-tool --image-version 1.3.0 --container-id 126ae35b9f38
Tell us your environment
chaos-oprator: 1.3
docker ino: x86 18.09.8
Anything else we need to know?
请通过以下路径进行排查,进入有问题的 chaosblade-tool 容器内:
- 执行 tc 命令查看是否存在网络演练规则:
tc qdisc show dev eth0
。如果存在,则是由于演练过引起的。 - 请执行
ls -al /var/run/docker.sock
查看 docker.sock 是否存在。如果不存在,请确定使用的容器是否是 docker
如果以上方式都不存在,则升级到最新的 1.5.0 版本,使用 blade c cri network .... --container-runtime docker
命令尝试。
Please use the following path to troubleshoot and enter the chaosblade-tool container in question:
- Execute the tc command to check whether there are network drill rules:
tc qdisc show dev eth0
. If it exists, it is caused by rehearsal. - Please execute
ls -al /var/run/docker.sock
to check if docker.sock exists. If it does not exist, please determine if the container used is docker
If none of the above methods exist, upgrade to the latest version 1.5.0 and use the blade c cri network .... --container-runtime docker
command to try.
i'd like to close