Skip to content

Commit ef4b9d3

Browse files
committed
README: fix hooks example per schema
The README example for hooks seems wrong. Interestingly, it's been like that since the very beginning. The schema that was added a bit later has hooks defined differently so update README to match that. Signed-off-by: Mikko Ylinen <[email protected]>
1 parent 22d5b35 commit ef4b9d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ $ cat > /etc/cdi/vendor.json <<EOF
159159
{"hostPath": "tmpfs", "containerPath": "/tmp/data", "type": "tmpfs", "options": ["nosuid","strictatime","mode=755","size=65536k"]}
160160
],
161161
"hooks": [
162-
{"createContainer": {"path": "/bin/vendor-hook"} },
163-
{"startContainer": {"path": "/usr/bin/ldconfig"} }
162+
{"hookName": "createContainer", "path": "/bin/vendor-hook" },
163+
{"hookName": "startContainer", "path": "/usr/bin/ldconfig" }
164164
]
165165
}
166166
}

0 commit comments

Comments
 (0)