Docker:“驱动程序无法在端点测试容器上编程外部连接”

时间:2018-08-07 20:03:37

标签: python-3.x docker containers manjaro

在manjaro VMware中创建python3容器时出现以下错误:

docker: Error response from daemon: driver failed programming external connectivity on endpoint testcontainer (c55fc0dd481c36765fcd968118c3fbf5c7fa686cdfc625c485f963109b0f89e3): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 5000 -j DNAT --to-destination 172.17.0.2:80 ! -i docker0: iptables: No chain/target/match by that name. (exit status 1))

我不明白是什么问题?

dockerfile:

FROM python:3.7-alpine

RUN adduser -D test

WORKDIR /home/testapp

ADD ./webapp/requirements.txt requirements.txt

RUN pip3 install --upgrade pip

RUN pip3 install -r requirements.txt

RUN pip3 install gunicorn

ADD ./webapp webapp/

ENV FLASK_APP app.py

USER test

EXPOSE 5000
ENTRYPOINT ["./app.py"]

0 个答案:

没有答案