-
Notifications
You must be signed in to change notification settings - Fork 0
2. Usage
Fillip Hannisdal edited this page Nov 14, 2018
·
1 revision
To start a new container for PHP 7.2, simply run
php72
Alternatively, you can also run:
docker-start 72
If an existing container is running on port 80, that container will be stopped.
Assuming you currently have the PHP 7.2 container running on port 80, but want to test your app in PHP 5.6, you can run:
php56 8056
Alternatively, you can also run:
docker-start 56 8056
This will start a new container for PHP 5.6 on port 8056. If an existing container is running on the same port when explicitly specifying a port (even if it's 80), an error will occur and the new container will fail to start.
To stop all PHP containers, run:
docker-stop
Which will run docker stop
for all containers with a name matching php
To remove all PHP containers, run:
docker-rm
Which will run docker rm
for all containers with a name matching php