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.

systemd-nspawnの--registerオプション

Posted at

systemd-nspawn Advent Calendar 2017 17日目の記事です。

systemd-nspawnには--registerオプションというものがあり, machinectlから見えるかどうかを制御できます

# 通常だと見える
systemd-nspawn -D ubuntu2/
machinectl
    MACHINE CLASS     SERVICE        OS     VERSION ADDRESSES
    ubuntu2 container systemd-nspawn ubuntu 16.04   -

# 見えない
systemd-nspawn -D ubuntu2/ --register no
machinectl
    No machines.

例えば、本番サーバ等で、systemd-nspawnを使っている場合、起動中のコンテナを監視等しているかもしれません。
そう言った場合でも、machinectlコマンドから見えなくして影響がないようにすることができます。

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?