Use this container as an executable
Just add the option to use with the command php :
$ docker run test:entrypoint -r 'echo "hello world";'
By default, it will execute the index.php file in /var/www/html/
$ docker run test:entrypoint
hello world
$
Create a volume mounted on /var/www/html/
To see the source, type this commande :
$ docker inspect containername
Use the value of the var TARGETPLATFORM during the build
You can change the value by adding --build-arg on the build command
$ docker image build --build-arg TARGETPLATFORM=alpine .
should see Building for linux/$TARGETPLATFORM platform on the build log
Check if the container is healthy by checking the state of apache /etc/init.d/apache2 status
The container is running without starting apache at the beginning, so the status is unhealthy
By starting manually apache, the container status become healthy.
Set the stopsignal of the container to SIGWINCH
In order to kill the container, you can use this command :
$ docker kill --signal=SIGWINCH container_nameor by default (SIGKILL)
$ docker kill container_nameContent type
Image
Digest
Size
116.8 MB
Last updated
over 6 years ago
docker pull judejp/helloworld-php-arm:stopsignal