3 ms·
Regarding number two, you'll just link your containers together with docker. See https://docs.docker.com/userguide/dockerlinks/ https://docs.docker.com/userguid
by diggan 12y ago
Regarding number two, you'll just link your containers together with docker. See https://docs.docker.com/userguide/dockerlinks/ https://docs.docker.com/userguide/dockerlinks/
It seems that most issues OP have is mostly because misunderstanding or lack of knowledge.
- Zikes 12y agoWhat if the mysql server isn't in a docker container or even on the same machine?
- sevos1987 12y agothen just use environment variables (ENV keyword in Dockerfile or --env param in docker run command)
- est 12y agoThe problem with ENV is that you can't change server IP on the fly, you have to restart the web server to apply new ENV
- eropple 12y agoThen you should be (ideally) using a service discovery solution or (less ideally) wiring up with environment variables. This is (one reason) why CoreOS uses etcd.
- vertex-four 12y agoUmm, so, how do you deal with Docker when you have more than one physical machine? It seems half the stuff it does just doesn't work then, and you have to pile on further abstractions anyway, using Docker just as a simple container management system (of which we have working ones already) and container build system (of which there are far better systems available).