Add this alias to the file containing your other aliases.
# This will use the latest composer version
alias composer='docker run --rm -it -v "${PWD}:/app" --user "$(id -u):$(id -g)" composer'
Add this alias to the file containing your other aliases.
# This will use the latest composer version
alias composer='docker run --rm -it -v "${PWD}:/app" --user "$(id -u):$(id -g)" composer'