docker0网卡down影响
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker0网卡down影响相关的知识,希望对你有一定的参考价值。
首先docker网段冲突导致主机网络异常处理,可能是docker网桥导致主机路由表异常,定位了一下,果然如此,那么解决方法就很简单了。大概解释一下,docker安装以后会在主机上创建一个虚拟网卡-docker0,而我们启动的容器host网络以外,其他的都是通过docker0这个虚拟网卡经过物理网卡与外部通信的。这个虚拟网卡本身会有一个网段,一般是172.17.x.x,所以问题就明确了,因为docker0占用了这个网段,导致主机无法访问真是的网段机器。只要把docker0绑定的网段修改一下,就可以了. 参考技术A RCSB Protein Data Bank (RCSB PDB) enables breakthroughs in science and education by providing access and tools for exploration, visualization, and analysis of:Experimentally-determined 3D structures from the Protein Data Bank (PDB) archive
Computed Structure Models (CSM) from AlphaFold DB and ModelArchive
These data can be explored in context of external annotations providing a structural view of biology.
Coronavirus ResourcesDecorative: Join the RCSB PDB Team
Features & Highlights
Register Now for Virtual Crash Course: Using K-Base to access PDB Structures and CSMs
Register Now for Virtual Crash Course: Using K-Base to access PDB Structures and CSMs
Learn about the protein structure-related tools, visualizations, and workflows that have been integrated into KBase on Thursday November 10, 2022
Remembering John Westbrook on the Anniversary of His Passing
Remembering John Westbrook on the Anniversary of His Passing
John D. Westbrook Jr. (1957-2021) was incredibly beloved and respected by his colleagues at Rutgers and throughout the world, known for his dry wit and endless enthusiasm for thinking about all aspects of data and data management.
Undergrads/Grads: Apply to the Molecule of the Month Boot Camp (January 2023)
Undergrads/Grads: Apply to the Molecule of the Month Boot Camp (January 2023)
Limited spaces available for the Science Communication in Biology and Medicine Virtual Boot Camp: January 9-13, 2023. Applications due October 31, 2022.
Improved EM validation with Q-score
Improved EM validation with Q-score
wwPDB validation of EM structures for which there is both a model and an EM volume will include the Q-score metric
Register Now for Virtual Crash Course: Exploring Computed Structure Models from Artificial Intelligence/Machine Learning at RCSB.org
Register Now for Virtual Crash Course: Exploring Computed Structure Models from Artificial Intelligence/Machine Learning at RCSB.org
Learn how to search, visualize, and analyze CSMs alongside PDB structures using RCSB.org tools on Thursday September 22, 2022
Future Planning: PDB entries with extended CCD or PDB IDs will be distributed in the PDBx/mmCIF format only
Future Planning: PDB entries with extended CCD or PDB IDs will be distributed in the PDBx/mmCIF format only
PDB users and related software developers should review code and begin to prepare for this change. Entries containing extended CCD or PDB IDs will not be distributed in legacy PDB file format.
DNS name changes for PDB archive downloads from RCSB PDB
DNS name changes for PDB archive downloads from RCSB PDB
Programmatic users (ftp, rsync or https) should update scripts as soon as possible.
Improved EM validation with Q-score
Improved EM validation with Q-score
Starting September 23rd, wwPDB validation of EM structures for which there is both a model and an EM volume will include the Q-score metric
New Position: Senior Front-end Web Developer
New Position: Senior Front-end Web Developer
Join RCSB PDB to design, develop, & deploy modern web and data applications & complex user interfaces. Help accelerate research and training in biology, medicine, & related disciplines.
Developers: Switch to Search API v2 Before July 13
Developers: Switch to Search API v2 Before July 13
Documentation about Search API v2 is available. V1 will not be supported after July 13, 2022.
See new feature archive
News
Publications
Meet RCSB PDB at SACNAS
Meet RCSB PDB at SACNAS
Learn about the January 2023 Molecule of the Month Boot Camp, summer internship opportunities, and more.
» 10/25/2022
Happy Birthday, PDB!
Happy Birthday, PDB!
Today is the anniversary of the 1971 announcement of the PDB.
» 10/19/2022
Happy Birthday, Irving Geis
Happy Birthday, Irving Geis
Celebrate Geis' birthday (October 18, 1908) with a tour of the Geis Digital Archive of his pioneering works of biomolecular art at PDB-101
» 10/16/2022
Education Corner: Inktober SciArt
Education Corner: Inktober SciArt
Irina Bezsonova (UCONN Health) describes how she created Inktober SciArt Celebrating PDB50 in 2021. Images of her amazing PDB-inspired drawings are available for download.
» 10/13/2022
wwPDB Charter: Full and Associate Members
wwPDB Charter: Full and Associate Members
wwPDB is committed to responsible, international stewardship of public structural biology data
» 10/12/2022
Fall Newsletter Published
Fall Newsletter Published
Exploring Computed Structure Models at RCSB.org; Goodsell receives awards from The Protein Society and ACA; and more. In the Education Corner, learn about Animating Photosynthesis from artist Chris FitzGerald
» 10/10/2022
Structural Biology and Nobel Prizes
Structural Biology and Nobel Prizes
Visit PDB-101 to explore connections between Nobel Prizes and more than 50 years of open access to the PDB archive.
» 10/01/2022
Molecular Origami: Build a 3D paper model of DNA
Molecular Origami: Build a 3D paper model of DNA
A DNA folding template and folding tutorial are available in English and Spanish at PDB-101
» 09/27/2022
View Crystal Structure Quality in 3D
View Crystal Structure Quality in 3D
Use Mol* to display experimental crystal structures in a color scheme comparable to the Computed Structure Model confidence measure
» 09/20/2022
Simple Sequence Searching
Simple Sequence Searching
Enter a sequence in the top search bar to search for matching PDB entities. Use the slider to include Computed Structure Models (CSMs) in your results.
» 09/13/2022
PDB at a Glance
59,615Structures of Human Sequences
15,142Nucleic Acid Containing Structures
CSM at a Glance
999,255AlphaFoldDB
1,106ModelArchive 参考技术B 原因是在启动docker容器的时候突然断开连接,然后就连接不上了。服务器网段是100.10.x.x,被访问机器是172.17.x.x。
后来琢磨可能是docker网桥导致主机路由表异常,定位了一下,果然如此,那么解决方法就很简单了。大概解释一下,docker安装以后会在主机上创建一个虚拟网卡-docker0,而我们启动的容器host网络以外,其他的都是通过docker0这个虚拟网卡经过物理网卡与外部通信的。这个虚拟网卡本身会有一个网段,一般是172.17.x.x,所以问题就明确了,因为docker0占用了这个网段,导致主机无法访问真是的网段机器。只要把docker0绑定的网段修改一下 参考技术C 当Docker进程启动时,会在主机上创建一个名为docker0的虚拟网桥,此主机上启动的Docker容器会连接到这个虚拟网桥上。
docker 网络设置桥接网卡
[[email protected] ~]# systemctl stop docker [[email protected] ~]# ifconfig docker0 down [[email protected] ~]# brctl delbr docker0 [[email protected] network-scripts]# cat ifcfg-br0 DEVICE=br0 ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=static TYPE=Bridge IPADDR=192.168.56.12 NETMASK=255.255.255.0 GATEWAY=192.168.56.2 [[email protected] network-scripts]# cat ifcfg-eth0 TYPE=Ethernet BOOTPROTO=none IPV6INIT=no NAME=eth0 DEVICE=eth0 ONBOOT=yes BRIDGE=br0 [[email protected] network-scripts]# systemctl restart network [[email protected] network-scripts]# ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1 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 inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UP qlen 1000 link/ether 00:0c:29:ac:7e:6d brd ff:ff:ff:ff:ff:ff inet6 fe80::20c:29ff:feac:7e6d/64 scope link valid_lft forever preferred_lft forever 6: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000 link/ether 00:0c:29:ac:7e:6d brd ff:ff:ff:ff:ff:ff inet 192.168.56.12/24 brd 192.168.56.255 scope global br0 valid_lft forever preferred_lft forever inet6 fe80::20c:29ff:feac:7e6d/64 scope link valid_lft forever preferred_lft forever [[email protected]de2 network-scripts]# vi /etc/sysconfig/docker OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false -b=br0' systemctl restart network pipework的安装 wget https://github.com/jpetazzo/pipework/archive/master.zip unzip master.zip cp pipework-master/pipework /usr/local/bin/ chmod +x /usr/local/bin/pipework 这里最好不要让docker自动获取ip,下次启动会有变化而且自动获取的ip可能会和物理网段中的ip冲突 docker run -itd --net=none --name=test centos7 /bin/bash 为test容器设置一个与桥接物理网络同地址段的[email protected]网关 pipework br0 test 192.168.56.11/[email protected]以上是关于docker0网卡down影响的主要内容,如果未能解决你的问题,请参考以下文章
docker3.10修改默认网卡docker0的ip地址的方法,及docker的常用命令