| [--registry-username REGISTRY_USERNAME]
| [--registry-password REGISTRY_PASSWORD]
| [--registry-json REGISTRY_JSON]
+| [--container-init]
| [--config-json CONFIG_JSON] [--keyring KEYRING]
| [--key KEY] [--osd-fsid OSD_FSID] [--skip-firewalld]
| [--tcp-ports TCP_PORTS] [--reconfig] [--allow-ptrace]
+| [--container-init]
| **cephadm** **check-host** [-h] [--expect-hostname EXPECT_HOSTNAME]
* [--registry-username REGISTRY_USERNAME] username of account to login to on custom registry
* [--registry-password REGISTRY_PASSWORD] password of account to login to on custom registry
* [--registry-json REGISTRY_JSON] JSON file containing registry login info (see registry-login command documentation)
+* [--container-init] Run podman/docker with `--init`
+
ceph-volume
-----------
* [--tcp-ports List of tcp ports to open in the host firewall
* [--reconfig] Reconfigure a previously deployed daemon
* [--allow-ptrace] Allow SYS_PTRACE on daemon container
+* [--container-init] Run podman/docker with `--init`
enter
envs=envs,
privileged=privileged,
ptrace=ptrace,
+ init=args.container_init,
)
envs=None,
privileged=False,
ptrace=False,
- bind_mounts=None):
- # type: (str, str, List[str], Dict[str, str], str, List[str], Optional[List[str]], bool, bool, Optional[List[List[str]]]) -> None
+ bind_mounts=None,
+ init=False,
+ ):
+ # type: (str, str, List[str], Dict[str, str], str, List[str], Optional[List[str]], bool, bool, Optional[List[List[str]]], bool) -> None
self.image = image
self.entrypoint = entrypoint
self.args = args
self.privileged = privileged
self.ptrace = ptrace
self.bind_mounts = bind_mounts if bind_mounts else []
+ self.init = init
def run_cmd(self):
# type: () -> List[str]
'--group-add=disk']
if self.ptrace:
priv.append('--cap-add=SYS_PTRACE')
+ init = ['--init'] if self.init else []
vols = sum(
[['-v', '%s:%s' % (host_dir, container_dir)]
for host_dir, container_dir in self.volume_mounts.items()], [])
'--net=host',
'--ipc=host',
] + self.container_args + priv + \
- cname + envs + \
+ cname + init + envs + \
vols + binds + entrypoint + \
[
self.image
parser_bootstrap.add_argument(
'--registry-json',
help='json file with custom registry login info (URL, Username, Password)')
+ parser_bootstrap.add_argument(
+ '--container-init',
+ action='store_true',
+ help='Run podman/docker with `--init`')
parser_deploy = subparsers.add_parser(
'deploy', help='deploy a daemon')
'--allow-ptrace',
action='store_true',
help='Allow SYS_PTRACE on daemon container')
+ parser_deploy.add_argument(
+ '--container-init',
+ action='store_true',
+ help='Run podman/docker with `--init`')
parser_check_host = subparsers.add_parser(
'check-host', help='check host configuration')