Access to /etc/hosts results in permission denied error
The update-docker-gateway.sh
script called from run-all.sh
script assumes access to /etc/hosts file.
Aside from whether or not it is needed in the platform one environment, the access is normally reserved for privileged users and fails when run by the default www-data
user:
+ cp -f /var/www/hosts.new /etc/hosts
/usr/bin/cp: cannot remove '/etc/hosts': Permission denied