From 4e80b8540aa1af1c2100c05c9ce0ef0a6f447632 Mon Sep 17 00:00:00 2001 From: Jens Diemer Date: Tue, 29 Nov 2016 12:18:43 +0100 Subject: [PATCH] RUN chmod +x --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 09a6fab..3402ef1 100644 --- a/README.md +++ b/README.md @@ -185,7 +185,7 @@ All scripts must exit correctly, e.g. with exit code 0. If any script exits with The following example shows how you can add a startup script. This script simply logs the time of boot to the file /tmp/boottime.txt. -In `logtime.sh` (make sure this file is chmod +x): +In `logtime.sh`: #!/bin/sh date > /tmp/boottime.txt @@ -194,6 +194,7 @@ In `Dockerfile`: RUN mkdir -p /etc/my_init.d ADD logtime.sh /etc/my_init.d/logtime.sh + RUN chmod +x /etc/my_init.d/logtime.sh ### Environment variables