In chapter 6, when I built the fortune container I kept getting an error "permission denied" in the logs of the html-generator container. It looks like I needed to make the sh file executable in order for the container to run successfully.

I found this fixed the issue for me:

RUN chmod +x /bin/fortuneloop.sh

The final Dockerfile that worked for me is:

FROM ubuntu:latest
RUN apt-get update ; apt-get -y install fortune
ADD fortuneloop.sh /bin/fortuneloop.sh
RUN chmod +x /bin/fortuneloop.sh
ENTRYPOINT /bin/fortuneloop.sh

Just putting this here in case it can help anyone else with the same issue.