zoukankan      html  css  js  c++  java
  • docker之常见错误

    1. 

    docker run -d --name showdoc -p 4999:80 -v /showdoc_data/html:/var/www/html/      star7th/showdoc
    WARNING: IPv4 forwarding is disabled. Networking will not work.
    58fc7aa9da0886e66d73e40bf8927aa6b4857e60189d9a24270a89820a4e2427
    docker: Error response from daemon: driver failed programming external connectivity on endpoint showdoc (1f2e6e122a573af17586c5f112951b8d82f2f037e09aebce298170f79e18e231):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 4999 -j DNAT --to-destination 172.17.0.2:80 ! -i docker0: iptables: No chain/target/match by that name.
     (exit status 1)).

    解决:
    systemctl restart docker
    docker start 58fc

    2. 执行docker search mongo 报错

      Error response from daemon: Get https://index.docker.io/v1/search?q=mongo&n=25: Service Unavailable

      解决:

    # 修改域名解析配置
    vim  /etc/resolv.conf
    
    # 清空配置并添加
    nameserver 8.8.8.8
    nameserver 8.8.8.4
    
    # 重启网络服务
    systemctl restart network

    3. Unable to fetch some archives, maybe run apt-get update or try with --fix-missing

      windows下打包镜像

    解决方案:

      

    RUN apt-get clean && apt-get update -y && apt-get install -y python3-pip python3-dev
    
    // 添加apt-get clean
  • 相关阅读:
    raw socket
    selenium and win32api
    linux ip
    network config
    grub paramiter & menu.list
    实用命令dd
    resin or tomcat .war e.g. note
    JSP 运行
    linux command screen
    docker interact example
  • 原文地址:https://www.cnblogs.com/xingxia/p/docker_errors.html
Copyright © 2011-2022 走看看