I'am new to docker containerization, So i created one custom image for my application, And now i would like to Access MySQL data from host into docker, I did all application configurations but i am getting Communication exception, means docker is not able to communication with MySQL.
Used the following Dockerfile
FROM ubuntu
RUN ["apt-get", "update"]
RUN ["apt-get", "install", "-y", "vim","curl","jq","apt-utils"]
ENV PATH $PATH:/opt/java/bin
ENV PATH $PATH:/opt/confluent/bin
ADD confluent-5.2.1 /opt/confluent
RUN mkdir java
ADD jdk1.8.0_221 /opt/java
CMD ["/bin/bash","-c","confluent start schema-registry && ./opt/confluent/bin/connect-standalone ./opt/confluent/etc/schema-registry/connect-avro-standalone.properties ./opt/confluent/etc/kafka-connect-jdbc/source-quickstart-sqlite.properties","-n"]