awslabs / oci-add-hooks

Add oci hooks to Docker
Apache License 2.0
58 stars 16 forks source link

dockerd/oci-add-hooks outputs a warning into systemd journal #10

Open aki-k opened 3 years ago

aki-k commented 3 years ago

I compiled oci-add-hooks for Ubuntu 20.04 under Windows 10 WSL 2. It works, but the following message gets output into the systemd journal:

Jun 14 21:36:17 hostname dockerd[393]: time="2021-06-14T21:36:17.954397100+03:00" level=warning msg="failed to parse /opt/docker/oci-add-hooks/bin/oci-add-hooks version: unknown output format: commit: \n"

If I run /opt/docker/oci-add-hooks/bin/oci-add-hooks version, I get no output but the return code is 1.

docker info shows:

 Runtimes: oci-add-hooks runc
 Default Runtime: oci-add-hooks
 Init Binary: docker-init
 containerd version: b34a5c8af56e510852c35414db4c1f4fa6172339
 runc version: N/A
 init version: fec3683
aki-k commented 3 years ago

It was actually with --version:

# /opt/docker/oci-add-hooks/bin/oci-add-hooks --version
commit: