speedtest
speedtest copied to clipboard
Docker container won't start with existing files in /var/www/html
Description
The container fails to start if there are existing files in /var/www/html
Steps to reproduce
- Start the container with a Docker volume that drops a file in
/var/www/htmldocker run -d -v /path/to/file:/var/www/html/some-file.txt adolfintel/speedtest
Expected behaviour
The container should start
Additional Details
As of this writing, /var/www/html in the parent image (php:7.2-apache) is empty, so what's the benefit of doing this?:
https://github.com/librespeed/speedtest/blob/eca7f06e217b739e2c6cb14f3f4b4da9ea9be921/docker/entrypoint.sh#L6-L7
Please elaborate on the use-case you are trying to achive.