RUN chmod +x /etc/service/memcached/run is needed.

otherwise i get the error:
```
fatal: unable to start ./run: access denied
```
This commit is contained in:
Jens Diemer
2016-11-29 12:05:34 +01:00
committed by GitHub
parent 24b8bcebc8
commit 9920d9d834

View File

@@ -170,6 +170,7 @@ In `Dockerfile`:
RUN mkdir /etc/service/memcached RUN mkdir /etc/service/memcached
ADD memcached.sh /etc/service/memcached/run ADD memcached.sh /etc/service/memcached/run
RUN chmod +x /etc/service/memcached/run
Note that the shell script must run the daemon **without letting it daemonize/fork it**. Usually, daemons provide a command line flag or a config file option for that. Note that the shell script must run the daemon **without letting it daemonize/fork it**. Usually, daemons provide a command line flag or a config file option for that.