Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Weave Network

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

How to use the Weave network, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

Weave is a container network solution developed by Weaveworks. The virtual network created by weave connects containers deployed on multiple hosts. To containers, weave is like a huge Ethernet switch, all containers are connected to this switch, and containers can communicate directly without the need for NAT and port mapping. In addition, weave's DNS module makes the container accessible through hostname.

Description of experimental environment

Weave does not rely on distributed databases (such as etcd and consul) to exchange network information, and a cross-host container network can be established by running weave components on each host. We will deploy weave on host1 and host2 and implement the features of weave.

Install and deploy weave

Weave installation is very simple, execute the following command on host1 and host2:

Curl-L git.io/weave-o / usr/local/bin/weave

Chmod axix / usr/local/bin/weave

Start weave in host1

Execute the weave launch command in host1 to start the weave related services. All components of weave run as containers, and weave downloads the latest image from docker hub and starts the container.

Weave runs three containers:

Weave is the main program, which is responsible for establishing weave network, sending and receiving data, providing DNS services and so on.

Weaveplugin is the libnetwork CNM driver that implements the Docker network.

Weaveproxy provides a proxy service for the Docker command, which automatically adds the container to the weave network when the user runs Docker CLI to create the container.

Weave creates a new Docker network weave:

Driver is in the range of weavemesh,IP 10.32.0.0amp 12.

Docker network inspect weave

.

"Config": [

{

"Subnet": "10.32.0.0amp 12"

}

]

.

Weave has been installed and configured.

After reading the above, have you mastered how to use the Weave network? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report