Skip to content

Instantly share code, notes, and snippets.

@marek-pietrzak-tg
Created October 18, 2017 07:04
Show Gist options
  • Save marek-pietrzak-tg/12adf065099383fade8e01487da0426d to your computer and use it in GitHub Desktop.
Save marek-pietrzak-tg/12adf065099383fade8e01487da0426d to your computer and use it in GitHub Desktop.
Run php from docker (use it if you want to experiment with different php versions on the same machine)
alias php7='docker run -it --rm -v "$(pwd)":/tmp -w /tmp php php:7.1'
@marek-pietrzak-tg
Copy link
Author

alias php8='docker run -it --rm  -v "$(pwd)":/tmp -w /tmp php:8  php'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment