• docker安装后无法启动问题


    问题报错:
    Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network
    原因:因为没有网桥,导致docker无法启动

    ]# ip a
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet 127.0.0.1/8 scope host lo
           valid_lft forever preferred_lft forever
    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
        link/ether 52:54:00:ba:ae:c3 brd ff:ff:ff:ff:ff:ff
        inet 10.105.202.252/18 brd 10.105.255.255 scope global eth0
           valid_lft forever preferred_lft forever
    #安装时没有自动创建docker0网桥
    
    

    解决办法:

    ip link add name docker0 type bridge
    ip addr add dev docker0  172.17.0.1/16
    ip link set docker0 up
    
    只有今天
  • 相关阅读:
    高级查询及分页总结
    SQL编程
    线程同步
    创建和启动线程
    错题集04
    错题集03
    错题集02
    错题集
    新闻发布系统
    九大内置对象
  • 原文地址:https://www.cnblogs.com/arnoLixi/p/10589637.html
Copyright © 2020-2023  润新知