l'm using official images of PHP7, my docker start command:
docker run -p 9000:9000 --name php -v $site_path:/var/www/html/ --privileged=true -d php:php72
$site_path is a directory that saving my php code, then l was into the docker container, use
php server.php then got the warning above.
l also tried to run script without
9000 port like
9001, then script worked, but l can't connect to the server with my JS
l tried to use
php server.php on my local environment(not in docker) and it worked, JS connected it successfully, too.