If we add this code to the start.sh then we can launch the browser for the appropriately running docker container
function openBrowser()
{
local foundImage=''
while [[ -z $foundImage ]]; do
foundImage=$(docker ps --filter "name=$1" --format '{{ .Names }}')
if [[ -n $foundImage ]]; then
open -n "http://$2:$3"
fi
sleep 2
done
}
# This is to spawn the browser based on the running container
openBrowser $name $hostip $port &
If we add this code to the start.sh then we can launch the browser for the appropriately running docker container