Use the CustomContainer.create classmethod like most other blocks of
code in the get_container function.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
binds = get_container_binds(ctx, ident)
mounts = get_container_mounts(ctx, ident)
elif daemon_type == CustomContainer.daemon_type:
- cc = CustomContainer.init(ctx, ident.fsid, ident.daemon_id)
+ cc = CustomContainer.create(ctx, ident)
entrypoint = cc.default_entrypoint()
host_network = False
cc.customize_container_envs(ctx, envs)