Skip to content

Running commands in HOOKS #484

Answered by garethgeorge
robflate asked this question in Q&A
Discussion options

You must be logged in to vote

Ah, this is a bit tricky. Backrest uses go templates for substituting variables into scripts and messages, and so does docker cli :)

You'll need to escape the go template string {{ .Names }} e.g. as {{"{{"}} .Names {{"}}"}} (which yes -- is pretty ugly).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by garethgeorge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants