在CoreOS 899.15.0上,如何通过fleetctl更新以前提交的单元文件?
我以前提交过单元文件rethinkdb @ .service,但是想把它更新到一个修订版本:
$ fleetctl list-unit-files UNIT HASH DSTATE STATE TARGET [email protected] 76b05ae inactive inactive - [email protected] faa7a16 inactive inactive -
当我尝试重新提交rethinkdb @ .service时,fleetctl只警告我它的本地和registry版本不同:
$ fleetctl submit rethinkdb\@.service WARNING: Unit [email protected] in registry differs from local unit file [email protected]
目前,解决办法是销毁单位文件,然后重新提交。
fleetctl destroy rethinkdb\@.service fleetctl submit rethinkdb\@.service
即将推出的车队版本v0.13 (尚未发布,2016年8月):
支持replace单位
fleetctl start --replace rethinkdb\@.service