Using this method will allow you to develop with any version of PHP you require without having to install it or worry about uninstalling other versions.
If you are switching versions you will first want to stop and remove any existing php-fpm docker instance.
docker stop php
docker rm php