Snippet Code

Run shell in container temporary

docker run --rm --name php -it image:tag sh

Temporary Docker Container Installation with Laravel

docker run --rm \
    --pull=always \
    -v "$(pwd)":/opt \
    -w /opt \
    -it ramageek/image:php8.3-laravel \
    bash -c "/composer/vendor/bin/laravel new laravel-webapp"

Change docker tag

docker image tag existing-tag:version new-tag:version