我在尝试使用Travis build启动Docker镜像时收到以下错误:
41.39s$ docker pull zopyx/existdb-22
latest: Pulling from zopyx/existdb-22
Status: Downloaded newer image for zopyx/existdb-22:latest
before_install.2
13.75s$ docker pull zopyx/existdb-30
latest: Pulling from zopyx/existdb-30
Status: Downloaded newer image for zopyx/existdb-30:latest
8.90s$ docker run -d -p 127.0.0.1:22081:8080 --name existdb22 zopyx/existdb-22
143fb4d9226f46361aa36ce4f2c5144b491d66b00801c9f5af4247d80edd1d96
Error response from daemon: Cannot start container 143fb4d9226f46361aa36ce4f2c5144b491d66b00801c9f5af4247d80edd1d96: iptables failed: iptables --wait -t filter -A DOCKER ! -i docker0 -o docker0 -p tcp -d 172.17.0.1 --dport 8080 -j ACCEPT: iptables: No chain/target/match by that name.
(exit status 1)
答案 0 :(得分:1)
之前我已经看过这个问题,这是与预装的默认docker版本(1.7.0)相关的问题,并且更新修复了它。
您可以通过在.travis.yml文件中添加以下行来升级到运行更新的Docker版本的映像:
group: edge
这有帮助吗?欢迎访问support@travis-ci.com