Skip to content
美圖倉庫

又一個WordPress站點

美圖倉庫

又一個WordPress站點

docker modify ip

Posted on 2021年8月21日 By root

First,stop the containers running:

docker stop t1node

then, remove the subnet connected with the containers,ie:

docker network disconnect mynet t1node

docker network rm macnet

Create the new subnet and new gateway:

docker network create -d macvlan –subnet=192.168.2.0/24 –gateway=192.168.2.aaa -o parent=ens18 -o macvlan_mode=bridge mynet

Then,you can use new gateway and ip with container:

docker network connect –ip 192.168.2.xxx mynet t1node

docker start t1node

未分类

文章導覽

Previous post
Next post

發佈留言 取消回覆

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

近期文章

  • Firefox 汉化问题解决方案
  • 标签相似度计算的实战与应用(含矩阵优化与代码)
  • 使用 httpd 容器反向代理 host 网络模式的 vnstat 容器:实战与配置总结
  • Racknerd AMD Ryzen Windows VPS 推荐
  • ipv6 list

近期评论

  1. 「一位WordPress评论者」於〈世界,您好!〉發佈留言
©2025 美圖倉庫 | WordPress Theme by SuperbThemes