Install from Docker

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:

  1. From quay.io quay.io image

quay.io latest master

docker pull quay.io/goswagger/swagger

or

  1. From Github registry ghcr.io image

ghcr.io latest master

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 %*

Copyright 2015-2024 the go-swagger maintainers. This documentation is under an Apache 2.0 license.

Site built with HUGO using hugo-book