Apache2 in docker container gives 403 on statically served files

I’m having a weird issue and am looking for ideas.

I’m running an apache2 debian image that serves some static files, and has a few redirect rules.
Running a container works fine, but results in 403 (permission denied) errors on any request (curl as well as browser).

  • Docker Access to Raspberry Pi GPIO Pins
  • Missing package github.com/docker/docker/autogen/dockerversion
  • MYSQLI Connection refused when connecting to another docker container running MariaDB
  • Kubernetes, Flannel and exposing services
  • Bluemix Docker Container cf ic login the local Docker daemon is not reachable to authenticate
  • Docker Container to Host Routing
  • When I then exec into the container and perform an ls in a static file folder (such as css), those files are being served correctly on the next request.
    My current workaround is a startup script with a find /var/www/html/ -name '*'. This makes the container work as expected, with all the served files being accessible.

    • All the files have the correct owner (www-data) and permissions.
    • Docker version 1.7.1, but issue appeared also on 1.7.0
    • I’m running an Ubuntu VM, but my colleague reproduced this on a mac with docker machine.

    Whatever could be a reason for this behaviour?

  • Unable to register Docker service with Registrator
  • How do I reload haproxy.cfg on the default Dockerfile?
  • Why might Docker Compose restart be rendering container output an increasing number of times?
  • harbor: login required for pulling open image
  • Identity Server 4 running within docker container Exception: Unable to load DLL 'System.Security.Cryptography.Native.OpenSsl'
  • Starting a container that was already started and stoppped
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.