美文网首页
【原】Error response from daemon Ca

【原】Error response from daemon Ca

作者: 曹赫洋 | 来源:发表于2018-11-24 12:15 被阅读0次
    docker run -d -p 90:80 hub.c.163.com/library/nginx
    
    [root@testlocal ~]# docker run -d -p 90:80 hub.c.163.com/library/nginx
    
    484ac06e9359b2f92b5b53cd12c431f2a84abafdc47af745b38fa1075ab51e44
    
    Error response from daemon: Cannot start container 484ac06e9359b2f92b5b53cd12c431f2a84abafdc47af745b38fa1075ab51e44: iptables failed: iptables -t nat -A DOCKER -p tcp -d 0/0 --dport 90 -j DNAT --to-destination 172.17.0.11:80 ! -i docker0: iptables: No chain/target/match by that name.
    
    (exit status 1)
    

    解决办法:

    centos
    
    yum remove docker-engine
    
    yum installdocker-engine
    
    ubuntu
    
    apt-get remove docker-engine apt-get install docker-engine
    

    参考:https://askubuntu.com/questions/793272/iptables-forward-port-error-no-chain-target-match-by-that-name

    相关文章

      网友评论

          本文标题:【原】Error response from daemon Ca

          本文链接:https://www.haomeiwen.com/subject/gtneqqtx.html