I have two docker containers on my local machine from my two spring boot applications
- Eureka discovery client (discovery )
- My service (validation )
I have to register myservice with Eureka client. I am able to do it when I run these two spring boot applications on my local. But when I create a image It is not linking.
docker run -d -p 7070:7070 -t --name validation --link discovery docker-crst/bosng_validationsservice
docker run -d -p 8761:8761 -t --name discovery docker-crst/discovery-service