1OCI-REGISTER-MACHINE(1) General Commands Manual OCI-REGISTER-MACHINE(1)
2
3
4
6 oci-register-machine - Register OCI containers with systemd-machined
7
8
10 oci-register-machine
11
12
14 oci-register-machine is a OCI hook program. If you add it to the runc
15 json data as a hook, runc will execute the application after the
16 container process is created but before it is executed, with a prestart
17 flag. When the container exits oci-register-machine will be executed,
18 after the container exits but before it is destroyed, with the poststop
19 flag. Docker will execute oci-register-machine as a container hook
20 when it is installed in the /usr/libexec/oci/hooks.d directory.
21
22
23 After starting an OCI container, the container will be listed with the
24 machinectl. The machine name will be the container ID. Machinectl
25 will then be able to manage the container. When container exits, the
26 oci-register-machine will remove the instance from machinectl.
27
28
29 You can disable this service by editing the
30 /etc/oci-register-machine.conf file and setting the disabled field to
31 true.
32
33
35 $ docker run -it busybox /bin/sh
36
37 (In different terminal):
38
39 $ machinectl
40
41
42
43 #
44 MACHINE CLASS SERVICE
45 5556287c7fa1c2312243f5ca2d75c90b container docker
46
47 1 machines listed.
48
49
50
51
53 docker-run(1), machinectl(1), systemd-machined(8)
54
55
57 November 2015, updated by Sally O'Malley ⟨somalley@redhat.com⟩
58
59
60
61November 2015 oci-register-machine OCI-REGISTER-MACHINE(1)