title: docker image throwing error while running springboot application
body: <p>I have created one project in <code>springboot</code> in which I have used database as <code>mysql</code>. API is running <code>properly</code>.later I created docker image using jar file.</p>
  <p><a href="https://i.stack.imgur.com/2MknB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2MknB.png" alt="enter image description here" /></a></p>
  <p>I tried to run container using below command.</p>
  <pre><code>docker run -p 8080:8080 eazybytes/accounts
  </code></pre>
  <p>it is throwing the below error.</p>
  <p><a href="https://i.stack.imgur.com/NTolP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NTolP.png" alt="enter image description here" /></a></p>
  <p>Error is related with database.
  below was my <code>application.properties</code></p>
  <pre><code>server.port=8080
  
  spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
  spring.datasource.url=jdbc:mysql://localhost:3307/testdb
  spring.datasource.username=root
  spring.datasource.password=Ddixit90@
  
  spring.jpa.show-sql=true
  spring.jpa.hibernate.ddl-auto=create
  spring.jpa.database-platform=org.hibernate.dialect.MySQL8Dialect
  </code></pre>
  <p>what mistake I am doing?</p>