Docker Community Forums

Share and learn in the Docker community.

Does docker support OCI custom prestart/poststart hooks?


(Alphonseha) #1

Hi,

I am not sure if this is the correct forum for this question, else please point me in the correct direction.

OCI spec provides the ability to invoke prestart/poststart hook scripts and I have verified that
functionality using runc

I am trying to do the same with docker(version info provided below) and I am not able to
identify the exact mechanism to append the config.json that is created for the runtime bundle.

Please let me know, if docker does support the hook as specified in OCI runtime spec?
Any other pointers in this regard would be helpful.

-SNIP-
root@busybox:/usr/bin# docker version
Client:
Version: 18.03.1-ce
API version: 1.37
Go version: go1.9.5
Git commit: 9ee9f40
Built: Thu Apr 26 07:17:20 2018
OS/Arch: linux/amd64
Experimental: false
Orchestrator: swarm

Server:
Engine:
Version: 18.03.1-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.5
Git commit: 9ee9f40
Built: Thu Apr 26 07:15:30 2018
OS/Arch: linux/amd64
Experimental: false
root@busybox:/usr/bin#
-SNIP-

Thanks in advance

-Alphonse