Vyacheslav February 2016
Docker-machine ip in Dockerfile
I have a Spring boot project with Docker. My Dockerfile like this:
...<many useful info>...
CMD ["java", "-Djava.rmi.server.hostname=<DOCKER_CONTAINER_IP>", "javafile.jar"]
I need set DOCKER_CONTAINER_IP (ip of docker container which I can get by
docker-machine ip default) when I run Docker.
How can I do it?
Asked in February 2016
Viewed 3,121 times
Answered 1 times
Leave an answer
Quote of the day: live life