zoukankan      html  css  js  c++  java
  • (OK-half) Fedora23——Docker——CORE—testing


    [root@n6 n6.conf]# service docker start
    Redirecting to /bin/systemctl start  docker.service
    Failed to get D-Bus connection: 不允许的操作

    [root@n6 n6.conf]# iptables -L    

    [root@n6 n6.conf]# docker daemon
    [root@n6 n6.conf]# docker daemon -D &

    //Docker daemon supports for several different image layer storage drivers: aufs, devicemapper, btrfs, zfs and overlay
    // OK OK OK
    [root@n6 n6.conf]# docker daemon -D -s overlay &

    [root@n6 n6.conf]#
    ping 10.108.162.164
    ping www.baidu.com
    ping 10.0.0.1

    [root@n6 n6.conf]# netstat -nr

    pkill docker
    iptables -t nat -F
    ifconfig docker0 down
    brctl delbr docker0
    sudo service docker start


    [root@n6 n6.conf]# docker daemon -D -s overlay -H fd:// &

    [root@n6 n6.conf]# ps -ef
    [root@n6 n6.conf]# lsof -i -P


    [root@n6 n6.conf]# docker run -i -t centos /bin/bash
    [root@n6 n6.conf]# docker run -it --dns=10.3.9.4 centos ping -w1 www.baidu.com
    [root@n6 n6.conf]# docker run --dns 10.3.9.4 --dns 10.3.9.5 --dns 10.3.9.6 -i -t centos /bin/bash

    [root@n6 n6.conf]# tshark -i eth0 -i docker0
    [root@n6 n6.conf]# ip addr


    docker network inspect bridge
    tcpdump -i docker0 icmp [-v]
    iptables -t filter -nvL

    [root@n6 n6.conf]# fg

    --------------------------------
    problem:

    [root@n6 n6.conf]# docker info
    DEBU[0482] Calling GET /v1.21/info                      
    DEBU[0482] GET /v1.21/info                              
    Containers: 0
    Images: 0
    Server Version: 1.9.1-fc23
    Storage Driver: overlay
     Backing Filesystem: extfs
    Execution Driver: native-0.2
    Logging Driver: json-file
    Kernel Version: 4.3.3-301.fc23.x86_64
    Operating System: Fedora 23 (Twenty Three) (containerized)
    CPUs: 4
    Total Memory: 7.527 GiB
    Name: n6
    ID: NGHW:BCHL:KXI7:FFL7:F3WM:T5ZQ:MYXU:IPW5:FJX7:YW5U:4OV2:VYZJ
    Debug mode (server): true
     File Descriptors: 11
     Goroutines: 23
     System Time: 2016-01-30T18:01:23.793648708+08:00
     EventsListeners: 0
     Init SHA1: 3fd06f588b90413408e5a41309d802ca71feeea6
     Init Path: /usr/libexec/docker/dockerinit
     Docker Root Dir: /var/lib/docker
    WARNING: No swap limit support
    WARNING: bridge-nf-call-iptables is disabled
    WARNING: bridge-nf-call-ip6tables is disabled
    [root@n6 n6.conf]#

    resolve:
    [root@localhost core]# iptables -F
    [root@localhost core]# ip6tables -F

    --------------------------------
    problem:
    [root@localhost ~]# systemctl restart docker
    Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
    [root@localhost ~]# docker daemon
    WARN[0000] Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section.
    FATA[0000] Error starting daemon: error initializing graphdriver: "/var/lib/docker" contains other graphdrivers: overlay; Please cleanup or explicitly choose storage driver (-s <DRIVER>)

    resolve:
    # rm /var/lib/docker/overlay/ -rf

    --------------------------------
    Docker not starting “ could not delete the default bridge network: network bridge has active endpoints”"

    Run
    sudo mv /var/lib/docker/network/files/ /tmp/dn-bak

    to reset your networks. Then restart docker (sudo systemctl restart docker or sudo service docker restart depending on your OS). If everything works again you can delete the dn-bak directory.

    --------------------------------

    [root@localhost ~]# gedit /etc/sysconfig/docker
    DOCKER_OPTS="--dns 8.8.8.8 --dns 75.75.75.76"
    DOCKER_OPTS="--iptables=true --dns=10.20.100.1 --dns=8.8.8.8"

    --------------------------------

    On arch linux I needed
    ip link set down docker0 instead of ifconfig docker0 down and
    systemctl restart docker instead of service docker start.
    To delete all images, I did
    docker rmi $(docker images -q)

    ++++++++++++++++
    docker tag c8a648134623 docker.io/centos:core

    /etc/sysconfig/docker-storage这个配置文件
    DOCKER_STORAGE_OPTIONS="--storage-opt dm.no_warn_on_loop_devices=true"
    or
    DOCKER_STORAGE_OPTIONS="-s overlay"


    ------------------------------------------------------------------------------------------------------
    https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues
    ------------------------------------------------------------------------------------------------------
    Description of problem:

    `docker version`:

    `docker info`:

    `uname -a`:

    Environment details (AWS, VirtualBox, physical, etc.):

    How reproducible:

    Steps to Reproduce:
    1.
    2.
    3.

    Actual Results:

    Expected Results:

    Additional info:
    ------------------------------------------------------------------------------------------------------
    <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
    阅读(164) | 评论(0) | 转发(0) |
    给主人留下些什么吧!~~
    评论热议
  • 相关阅读:
    成都Uber优步司机快速注册攻略(外地车牌也可加入,不用现场培训)
    uber司机 如何提高评分、接单率、成单率?
    uber奖励和账单详解
    优步uber司机常见问题与答案(成都地区官方)
    成都优步uber司机第四组奖励政策
    疯狂的补贴,广州司机都被Uber触动
    scheme 宏macro写法
    scheme 模拟queue
    scheme I/0 输入输出操作
    scheme递归
  • 原文地址:https://www.cnblogs.com/ztguang/p/12649576.html
Copyright © 2011-2022 走看看