Public Repository

Last pushed: a year ago
Short Description
This is the sample petstore application
Full Description

Description

This is the server hosted at http://petstore.swagger.io. You can run it to have your own, high-performance petstore with questionable REST design practices, too.

Supported tags

  • latest (because nobody wants an old petstore)

For more information about this image and the functionality it provides, please see the swagger-samples GitHub repository.

Usage

Expose port 8080 from the image and access petstore via the exposed port. You can then add and delete pets as you see fit.

You can configure the mount point for the application (default is api):

SWAGGER_BASE_PATH=/v2

You can also configure the host that you will be serving the API on:

SWAGGER_HOST=http://petstore.swagger.io

Example

docker pull swaggerapi/swagger-petstore
docker run -d -e SWAGGER_HOST=http://petstore.swagger.io \
  -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/swagger-petstore

You can now open swagger-ui on your machine via 80

Docker Pull Command
Owner
swaggerapi

Comments (1)
wing328
a year ago

The example is not correct. It should be:

docker pull swaggerapi/petstore
docker run -d -e SWAGGER_HOST=http://petstore.swagger.io \
  -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore