Skip to content

美圖倉庫

又一個WordPress站點

Menu
  • 示例页面
Menu

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

發佈留言 取消回覆

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

近期文章

  • 使用 httpd 容器反向代理 host 网络模式的 vnstat 容器:实战与配置总结
  • Racknerd AMD Ryzen Windows VPS 推荐
  • ipv6 list
  • openmediavault(6.0) acme get Let’s encrypt SSL certificate for dynu ddns
  • Using Let’s Encrypt Certification for Synology Nas Systems With dynu as DDNS Provider and auto-renew it (updated 5-26-23)

近期评论

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