Skip to content

Commit

Permalink
Make docker-entrypoint.sh executable to avoid error
Browse files Browse the repository at this point in the history
Was getting an error when trying to run the image:

```
$ docker run --rm robisenberg/redis
container_linux.go:265: starting container process caused "exec: \"docker-entrypoint.sh\": executable file not found in $PATH"
docker: Error response from daemon: oci runtime error: container_linux.go:265: starting container process caused "exec: \"docker-entrypoint.sh\": executable file not found in $PATH".
```

The fix seemed to be to make the docker-entrypoint.sh executable.
See moby/moby#27182
  • Loading branch information
robisenberg committed Dec 7, 2017
1 parent 703e68e commit a9538a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ VOLUME /data
WORKDIR /data

COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]

CMD ["redis-server"]

0 comments on commit a9538a2

Please sign in to comment.