Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What is going on with this article?
@bellx2

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

More than 1 year has passed since last update.

過去に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
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
bellx2
ソフトウェアで世の中をハッピーにしたい何でもやる系エンジニアです。

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
0
Help us understand the problem. What is going on with this article?