github.com/go-swagger/go-swagger@v0.31.0/docs/install/install-docker.md (about) 1 --- 2 title: Install from Docker 3 date: 2023-01-01T01:01:01-08:00 4 draft: true 5 weight: 20 6 description: Installation instructions for go-swagger, from a docker image 7 --- 8 9 ## Running from Docker 10 11 {{<hint "info">}} 12 We release current master as docker images too. 13 14 Images are built for architectures: linux/amd64, linux/arm/v7, linux/arm64 and linux/ppc64le,linux/s390x. 15 {{</hint>}} 16 17 ### Docker image 18 19 First grab the image: 20 21 1. From quay.io [](https://quay.io/repository/goswagger/swagger?tab=tags) 22 23 [](https://quay.io/repository/goswagger/swagger?tab=tags) 24 ```sh 25 docker pull quay.io/goswagger/swagger 26 ``` 27 28 or 29 30 2. From Github registry [](https://github.com/orgs/go-swagger/packages/container/go-swagger/versions) 31 32 [](https://github.com/orgs/go-swagger/packages/container/go-swagger/versions) 33 34 ```sh 35 docker pull ghcr.io/go-swagger/go-swagger 36 ``` 37 38 39 {{<tabs "dockerInstallType">}} 40 {{<tab "MacOS/Linux" >}} 41 #### For Mac and Linux users 42 43 ```sh 44 REPO="quay.io" #<- or "ghcr.io" 45 alias swagger='docker run --rm -it --user $(id -u):$(id -g) -v $HOME:$HOME -w $PWD $REPO/goswagger/swagger' 46 swagger version 47 ``` 48 {{</tab>}} 49 {{<tab "Windows" >}} 50 #### For windows users 51 52 ```cmd 53 REM <- or "ghcr.io" 54 set REPO=quay.io 55 docker run --rm -it -v %CD%:/app -w /app %REPO%/goswagger/swagger 56 ``` 57 58 You can put the following in a file called **swagger.bat** and include it in your path environment variable to act as an alias. 59 60 ```cmd 61 @echo off 62 REM <- or "ghcr.io" 63 set REPO=quay.io 64 echo. 65 docker run --rm -it -v %CD%:/app -w /app %REPO%/goswagger/swagger %* 66 ``` 67 {{</tab>}} 68 69 {{</tabs>}}