title: Swagger running with local json file in Docker Image
body: <p>So, I wanted to run the <strong>local Swagger UI</strong> with respect to Local Json. And for that I am following the instructions available <a href="https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/installation.md" rel="noreferrer">here</a>:</p>
  
  <p>Here is the command that is being shared in that documentation: </p>
  
  <pre><code>docker run -p 8081:8080 -e SWAGGER_JSON=/foo/swagger.json -v /bar:/foo swaggerapi/swagger-ui
  </code></pre>
  
  <p>Here I understand the <strong>-p</strong> option but this <strong>-e</strong> and <strong>-v</strong> is confusing. </p>
  
  <p>So let's assume I have <strong>kept a JSON file at my desktop in Mac</strong> whose path is :</p>
  
  <p><code>/Users/abc/Desktop/lp.json</code> so with respect to this file the command will gets changed to:</p>
  
  <pre><code>docker run -p 8081:8080 -e SWAGGER_JSON=/Users/abc/Desktop/lp.json -v /bar:/foo swaggerapi/swagger-ui
  </code></pre>
  
  <p>But what about the <strong>-v</strong> part of the command. What is the value that I need to put with respect to <strong>-v</strong> option, although the basic command i.e : </p>
  
  <pre><code>docker run -p 8081:8080 swaggerapi/swagger-ui
  </code></pre>
  
  <p>Runs and SwaggerUI is available at <strong>http:localhost:8081</strong> but with default Json and not with my Json, i.e with <code>http://petstore.swagger.io/v2/swagger.json</code></p>
  
  <p>So my query is what should I make a change to the command of <strong>docker</strong> that will run the image of the SwaggerUI with my local JSON?</p>
  
  <p>Please help. Thanks in advance.
   &amp;
  Happy coding
  :)</p>