0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CoreOSでdocker0のIPアドレスを変更する

Last updated at Posted at 2018-10-11

過去にdocker0のIPアドレス帯を変更する方法をポストしたが、CoreOSを使ったらもう一度同じところでハマったので、再調査。

#環境

CoreOS 1855.4.0

#変更方法

1.ファイルを作成

sudo vi /etc/systemd/system/docker.service.d/docker.conf

/etc/systemd/system/docker.service.d/docker.conf
[Service]
Environment="DOCKER_OPTS=--bip=192.168.200.1/24"

2.サービス再起動

sudo systemctl daemon-reload
sudo systemctl restart docker.service

#参考

docker0のIPアドレス帯の変更
https://qiita.com/bellx2/items/21fdc3bdc6958f749f3e

Customizing docker
https://coreos.com/os/docs/latest/customizing-docker.html

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?