3 ms·
Day 21: Docker – The Missing Tutorial
- chrishenn 13y agoHow do provisioning systems compare to Docker? Right now I have a development environment that consists of salt stack provisioning Vagrant. Spinning up a production server just means running salt on the host (Rackspace, DO, whatever.) Is there any use for Docker in this case?
- whatever2001 13y agoI think there's someone already working on this use case, check out: https://github.com/makinacorpus/salt/blob/develop/salt/states/dockerio.py https://github.com/makinacorpus/salt/blob/develop/salt/state...
- sandGorgon 13y agovery interested to look at it - I'm trying to figure out between ansible and salt. Do you have your salt scripts on github somewhere ?
- powertower 13y agoOut of the 10 or 20 posts about Docker that made it to front-page on HN in the last year, this is the first one that has been able to show me what Docker is. Though I'm still confused on - Real world examples of tried and proven setups like an environment of Apache, PHP, and MySQL being run inside a Docker container (for example: for setting up shared hosting on a box). Would that even make sense?
- BHSPitMonkey 13y agoMy understanding is that keeping your database in a separate container from your application(s) is a more preferred topology. In theory, you could easily spin up/spin down application containers as needed, and they can use Docker's service discovery features to automatically become aware of which port the database is listening on.
- alco 13y agoAt first, I was confused too. So I asked on the ML. See [1] and continuation in [2]. You could also browse the docker-user list, there are a number of threads asking to clarify various concepts about Docker. [1]: https://groups.google.com/d/msg/docker-dev/OcpLrYti64Q/Ue6vPUTFKOwJ https://groups.google.com/d/msg/docker-dev/OcpLrYti64Q/Ue6vP... [2]: https://groups.google.com/d/msg/docker-user/4acVRnOd9Dw/RZRcy0QaRD4J https://groups.google.com/d/msg/docker-user/4acVRnOd9Dw/RZRc...
- hackerboos 13y ago> You can test the express application by curl as shown below. I haven't seen one tutorial or piece of documentation that tells me how to access that app from my host machine.
- whatever2001 13y agowouldn't you just ssh into the container?
- hackerboos 13y agoI meant from a browser.
- Sikul 13y agoA container can expose ports that the application is running on to the host. For instance, one of my web server containers might expose 9000 to the host. You could access 9000 directly from the host or you can setup nginx to forward 80 to 9000 if that's what you want. Something like that.
- rco8786 13y agoI'm not sure this is really the missing tutorial...it seems pretty much the same as the other tutorials I've read/watched. Then again I've been working with docker a lot lately so maybe I was looking harder.