From 03fa3c35956d5328ccc2255c311a4b90069bccb4 Mon Sep 17 00:00:00 2001 From: CMGS Date: Tue, 3 Oct 2017 22:24:27 +0800 Subject: [PATCH] complex hook --- specs.yaml.example | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/specs.yaml.example b/specs.yaml.example index 9a2fa19..d22ca2e 100644 --- a/specs.yaml.example +++ b/specs.yaml.example @@ -11,7 +11,12 @@ entrypoints: - "80/tcp" privileged: "1" hook: - after_start: "ls -al /tmp/host" + after_start: + - "ls -al /" + - "env" + before_stop: + - "ls -al /tmp" + - "pwd" force: false volumes: - "/tmp:/tmp/host"