question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot View Swagger-UI via Docker for Win

See original GitHub issue

Q&A (please complete the following information)

  • OS: Windows 10 Pro
  • Browser: Chrome
  • Version: 78.0.3880.4
  • Method of installation: Docker for Windows
  • Swagger-UI version: 3.23.5
  • Swagger/OpenAPI version: N/A

Content & configuration

  1. I installed swagger-ui via docker, using the commands:
docker pull swaggerapi/swagger-ui
docker run -p 80:8080 swaggerapi/swagger-ui
  1. I opened my browser and tried to access https://localhost:8080/swagger-ui.html. No page was found.

Swagger/OpenAPI definition: N/A

Swagger-UI configuration options: N/A

Screenshots

image

How can we help?

I’d like to know what I’m doing wrong and fix it, if possible. Thank you, in advance.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
vit100commented, Nov 23, 2020

Had same issue - turned out … my mistake -))) shame on me -))) It was like there:

if (env.IsDevelopment())
     {
      app.UseDeveloperExceptionPage();
      app.UseSwagger();
      app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "app v1"));
    }

too much distraction -)

1reaction
jayadityancommented, Mar 12, 2020

Hi I am also facing similar issue. Can you please help?

I am trying using http://localhost:8080/ but getting empty page

Can you help here? I am using my work laptop is there any restriction?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Swagger UI gives 404 when app is running in Docker container
The Swagger UI is now in a "Development" block by default: if (env. ... it's built as Release, and Swagger won't be accessible....
Read more >
Installation - Swagger Documentation
For more information on controlling Swagger UI through the Docker image, see the Docker section of the Configuration documentation.
Read more >
Configuring and Using Swagger UI in ASP.NET Core Web API
The first step is to install the Swashbuckle package. We can execute the following command in the Package Manager Console window: Install- ...
Read more >
FastAPI in Containers - Docker
I'll show you how to build a Docker image for FastAPI from scratch, based on the official Python image. This is what you...
Read more >
thanhson1085/swagger-ui - Docker Image
Because Swagger UI has no dependencies, you can host it in any server environment, or on your local ... Swagger-UI cannot easily show...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found