I run these commands in my Golang project\'s root directory:
alias swagger="sudo docker run --rm -it -e GOPATH=$HOME/go:/go -v $HOME:$HOME -w $(pwd) quay.io/