The v3.x tag series supports the Swagger / OpenAPI Specification 2.0 only. If you need 1.x support, please use the 2.x series.
latestbased on master
For more information about this image and the functionality it provides, please see the swagger-ui GitHub repository.
Expose port 8080 from the image and load the swagger-ui on the exposed port. You can then access the web service directly from the swagger-ui or via API.
docker pull swaggerapi/swagger-ui docker run -p 80:8080 swaggerapi/swagger-ui
You can now open swagger-ui on your machine via 80:
latest, and post
v3.0.5 tags, you can specify the default swagger-ui to load in the UI:
docker run -p 80:8080 -e API_URL=http://generator.swagger.io/api/swagger.json swaggerapi/swagger-ui
I am confused about the version. I pulled swaggerapi/swagger-ui:v3.0.17 and docker images says v3.0.17 but echo $VERSION still returns v2.2.10. This is very confusing especially when working with tag latest.
I don't find any document on how to run swagger-ui in HTTPS. I want to reach my swagger-ui with https://...
Can you help me please?
it seems to be the API_URL works only with the github version at the moment, but not with the docker hub version. maybe docker hub needs to be updated with the latest.
It worked with version 3.0.8 for me.
Hey, is the API_URL envvar supposed to be the one I see when I open the page? Does not work for me.