1oci-systemd-hook(1)(--)              hook              oci-systemd-hook(1)(--)
2
3
4

SYNOPSIS

6       oci-systemd-hook prestart [container.json]
7
8
9       oci-systemd-hook poststop
10
11

DESCRIPTION

13       Setup environment for systemd to run in docker or a OCI compatible run‐
14       time.  It is expected to receive the state of the  container  including
15       the  pid  and  ID  over  stdin  as  defined  in the OCI specification (
16https://github.com/opencontainers/specs⟩).  It mounts  tmpfs  at  /run
17       and  /tmp,  links  journal directory to the host using a bind mount and
18       creates /etc/machine-id for the container systemd.
19
20

ARGUMENTS

22              ·
23
24
25              prestart:  Setup the systemd environment in a container
26
27              ·
28
29
30              container.json: file which  describes  the  container.  oci-sys‐
31              temd-hook will examine the json data for the CMD option and only
32              setup the environment if the CMD is init or systemd. Only avail‐
33              able on prestart.
34
35              ·
36
37
38              poststop:  Teardown and undo the changes on the host done during
39              prestart
40
41
42

AUTHORS

44       Mrunal Patel ⟨mrunalp@gmail.com⟩ Dan Walsh ⟨dwalsh@redhat.com⟩
45
46
47
48systemd                               OCI              oci-systemd-hook(1)(--)
Impressum