Unable to Connect Mysql container from a spring-boot application

Thanks again for your reply. I tried to create the mysql container using ‘mysql:5.7’, but still my application is not connecting. Can this be an issue with my Ubuntu VirtualBox?