etcd+confd实现docker无状态部署

激动人心的一步完成,明天再来补充完整这篇文章。我相信这对于我公司的发布流程优化的意义是革命性的!

[root@DockerSwarm ~]# ./confd-0.10.0-linux-amd64 -onetime -backend etcd -node http://127.0.0.1:2379

2017-07-17T13:32:39+08:00 DockerSwarm ./confd-0.10.0-linux-amd64[12292]: INFO Backend set to etcd
2017-07-17T13:32:39+08:00 DockerSwarm ./confd-0.10.0-linux-amd64[12292]: INFO Starting confd
2017-07-17T13:32:39+08:00 DockerSwarm ./confd-0.10.0-linux-amd64[12292]: INFO Backend nodes set to http://127.0.0.1:2379
2017-07-17T13:32:39+08:00 DockerSwarm ./confd-0.10.0-linux-amd64[12292]: INFO Target config /tmp/myconfig.conf out of sync
2017-07-17T13:32:39+08:00 DockerSwarm ./confd-0.10.0-linux-amd64[12292]: INFO Target config /tmp/myconfig.conf has been updated
[root@DockerSwarm ~]# cat /tmp/myconfig.conf
[myconfig]
database_url = 10.16.15.1:3306
database_user = root
[root@DockerSwarm ~]# 

你可能感兴趣的:(docker,linux系统运维)