alias docker-container-clear='docker rm -f $(docker ps -a -q)'
alias docker-image-clear='docker image remove -f $(docker images -a -q)'
alias docker-clear='docker system prune'
Windows/powershell (please use the modern variant: https://github.com/PowerShell/PowerShell) cannot create aliases for commands with arguments. To work-around this issue the best approach is to create a function for the command and alias the function.