1OCI-REGISTER-MACHINE(1)(oci-registOeCrI--mRaEcGhIiSnTeE)R-MACHINE(1)(oci-register-machine)
2
3
4
5November 2015
6

NAME

8       oci-register-machine - Register OCI containers with systemd-machined
9
10

SYNOPSIS

12       oci-register-machine
13
14

DESCRIPTION

16       oci-register-machine  is  a OCI hook program. If you add it to the runc
17       json data as a hook, runc will execute the application after  the  con‐
18       tainer  process  is  created but before it is executed, with a prestart
19       flag.  When the container exits oci-register-machine will be  executed,
20       after the container exits but before it is destroyed, with the poststop
21       flag.  Docker will execute oci-register-machine  as  a  container  hook
22       when it is installed in the /usr/libexec/oci/hooks.d directory.
23
24
25       After  starting an OCI container, the container will be listed with the
26       machinectl.  The machine name will be  the  container  ID.   Machinectl
27       will  then  be  able to manage the container. When container exits, the
28       oci-register-machine will remove the instance from machinectl.
29
30
31       You  can  disable  this  service   by   editing   the   /etc/oci-regis‐
32       ter-machine.conf file and setting the disabled field to true.
33
34

EXAMPLES

36              $ docker run -it busybox /bin/sh
37
38              (In different terminal):
39
40              $ machinectl
41
42
43
44       ```     #     MACHINE                              CLASS        SERVICE
45       5556287c7fa1c2312243f5ca2d75c90b container docker
46
47
48       1 machines listed.
49
50
51       ```
52
53

SEE ALSO

55       docker-run(1), machinectl(1), systemd-machined(8)
56
57

HISTORY

59       November  2015,   updated   by   Sally   O'Malley   somalley@redhat.com
60       ⟨mailto:somalley@redhat.com⟩
61
62
63
64                                 OCI-REGISTER-MACHINE(1)(oci-register-machine)
Impressum