Aliases to run commands in docker
The following examples will allow the run the corresponding commands within docker of a file outside of docker, i.e. a local file:
alias docker-php='docker run --rm -itv $(pwd):/app -w /app php php'
alias docker-python='docker run --rm -itv $(pwd):/app -w /app python python'
Usage:
docker-php myfile.php
docker-python myfile.py
No Comments