sml2h3 / ddddocr-fastapi

使用ddddocr的最简api搭建项目,支持docker
873 stars 388 forks source link

docker 启动报错 #15

Open kN6jq opened 2 years ago

kN6jq commented 2 years ago
root@VM-24-4-ubuntu:/home/ubuntu/ocr_api_server# docker run -p 9898:9898 -d ocr_server:v1
ab86f1c3c59d8b628eea577c1dcba48c24c374b98a742b1171e0bdf48bd2c6f5
docker: Error response from daemon: driver failed programming external connectivity on endpoint elegant_fermat (e56b42c69b11022b8716d05d073355bcd9fc6d999b943eae6f51ec23e71f695c):  (iptables failed: iptables --wait -t filter -A DOCKER ! -i docker0 -o docker0 -p tcp -d 172.17.0.2 --dport 9898 -j ACCEPT: iptables: No chain/target/match by that name.
 (exit status 1)).
root@VM-24-4-ubuntu:/home/ubuntu/ocr_api_server# iptables --wait -t filter -A DOCKER ! -i docker0 -o docker0 -p tcp -d 172.17.0.2 --dport 9898 -j ACCEPT
iptables: No chain/target/match by that name.

image

kN6jq commented 2 years ago

已解决

root@VM-24-4-ubuntu:/home/ubuntu/ocr_api_server# systemctl restart docker
root@VM-24-4-ubuntu:/home/ubuntu/ocr_api_server# docker run -it -p 9898:9898 -d ocr_server:v1
af52d711010007bf8b4d146f3f12df5b089ed2cc3e0f86566b4b5f3376d85cab
root@VM-24-4-ubuntu:/home/ubuntu/ocr_api_server# 

参考链接

https://blog.csdn.net/whatday/article/details/86762264