Running from Docker #
We release current master as docker images too.
Images are built for architectures: linux/amd64, linux/arm/v7, linux/arm64 and linux/ppc64le,linux/s390x.
Docker image #
First grab the image:
docker pull quay.io/goswagger/swagger
or
docker pull ghcr.io/go-swagger/go-swagger
For Mac and Linux users #
REPO="quay.io" #<- or "ghcr.io"
alias swagger='docker run --rm -it --user $(id -u):$(id -g) -v $HOME:$HOME -w $PWD $REPO/goswagger/swagger'
swagger version
For windows users #
REM <- or "ghcr.io"
set REPO=quay.io
docker run --rm -it -v %CD%:/app -w /app %REPO%/goswagger/swagger
You can put the following in a file called swagger.bat and include it in your path environment variable to act as an alias.
@echo off
REM <- or "ghcr.io"
set REPO=quay.io
echo.
docker run --rm -it -v %CD%:/app -w /app %REPO%/goswagger/swagger %*