cloud-init
Links
インスタンスの metadata user-data に書く
docker run -d?
rumcmd で docker run する時 -d したほうがいい?
大抵 systemctl で立ち上げて端末は束縛しない
/var/log/cloud-init-output.log に docker からのログが一通り出てしまいそう
cloud-init が終わらない扱いになる?
具体的な問題はなさそうだが...
やっぱ runcmd が終わらない扱いかな、runcmd と順序の依存のある module がある? なら影響はありそうだが知らない
code:logs
2021-02-22 01:10:08,795 - util.pyDEBUG: Cloud-init 19.4 received SIGTERM, exiting... Filename: /usr/lib64/python3.6/subprocess.py
Function: _try_wait
Line number: 1404
Filename: /usr/lib64/python3.6/subprocess.py
Function: wait
Line number: 1457
Filename: /usr/lib64/python3.6/subprocess.py
Function: communicate
Line number: 835
2021-02-22 01:10:08,796 - handlers.pyDEBUG: finish: modules-final/config-scripts-user: FAIL: running config-scripts-user with frequency always 2021-02-22 01:10:08,796 - util.pyDEBUG: Reading from /proc/uptime (quiet=False) 2021-02-22 01:10:08,797 - util.pyDEBUG: Read 19 bytes from /proc/uptime 2021-02-22 01:10:08,797 - util.pyDEBUG: cloud-init mode 'modules' took 64113.273 seconds (64113.28) 2021-02-22 01:10:08,797 - handlers.pyDEBUG: finish: modules-final: FAIL: running modules for final