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
16       (https://github.com/opencontainers/specs).  It mounts tmpfs at /run and
17       /tmp,  links  journal directory to the host using a bind mount and cre‐
18       ates /etc/machine-id for the container systemd.
19
20

ARGUMENTS

22              · prestart:  Setup the systemd environment in a container
23
24              · container.json: file which describes the  container.  oci-sys‐
25                temd-hook  will  examine  the json data for the CMD option and
26                only setup the environment if the CMD is init or systemd. Only
27                available on prestart.
28
29              · poststop:  Teardown and undo the changes on the host done dur‐
30                ing prestart
31
32
33

AUTHORS

35       Mrunal Patel  mrunalp@gmail.com  ⟨mailto:mrunalp@gmail.com⟩  Dan  Walsh
36       dwalsh@redhat.com ⟨mailto:dwalsh@redhat.com⟩
37
38
39
40systemd                               OCI              oci-systemd-hook(1)(--)
Impressum