TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Docker + Joyent + OpenVPN = Bliss

71 pointsby jpetazzoover 11 years ago

11 comments

motiejusover 11 years ago
I never tried Docker (looking around now), but the approach is extremely dirty for a few reasons.<p>1. Process supervision should be handled in Docker (or something that is designed to do supervision), not in the `while true` loop. Idea on hanging on *.log files is terrible. Maybe there is a reason to stop the container when application stops?<p>2. There must be a better way to handle docker logs of multiple programs. If not, run both instances in different containers.<p>3. The thing serves configuration files to arbitrary clients that ask for them. It doesn&#x27;t even log multiple downloads of the same key (though serves the private keys over SSL, which makes it hilarious on the purpose of SSL here).<p>Point 3 is openvpn specific and can be acceptable for example (though I am still lost why bother with SSL). However, points 1 and 2 show how to seriously misuse Docker. Either Docker or the setup is flawed (I suspect the latter).<p>Please do not take this article as an example how to do things in Docker. There must be better way, in more or less every step.
评论 #6363435 未加载
noonespecialover 11 years ago
Very nice. I do something most similar.<p>One tiny nitpick: you might want something like: <i>dhcp-option DNS 8.8.8.8</i> to go with your <i>redirect-gateway def1</i> .<p>This is because all of your DNS traffic will be redirected over your VPN as well. If you happened to have been assigned a local only DNS by your home router or cable&#x2F;dsl provider, DNS will be broken when your VPN connects. Use a globally accessible one like 8.8.8.8 and the dhcp-option to tell openVPN to switch your DNS on connect.
biturdover 11 years ago
There has been lots of talk re ; docker lately.<p>I don&#x27;t fully get it, but am trying to follow along. Basically, s small box you can install 1-x s-Linux software apps on, and deploy it on another machine, or inside a VM on that machine.<p>It&#x27;s not a real box, or hardware, but a small chunk of software that essential is a pre-made .iso with whatever single, or multi-packackaged goody you desire?<p>I don&#x27;t get, with spinning up a VPS being a few clicks, what is the advantage? Can&#x27;t you make images of your VPS on amazon, or any of the other cloud providers, and save a snapshot of your config? What is the difference?<p>These are totally posable? Where do they get their real hardware resources from, such as RAM and drive? If I set up a LAMP server in a Docker container, allocate 50GB of memory to Apache, and drop that docker into a micro instance on Amazon, what is going to happen?
评论 #6364273 未加载
zeckalphaover 11 years ago
I was hoping this would be a mapping between containers and zones.
评论 #6364183 未加载
res0nat0rover 11 years ago
This looks fun, but if this is the only thing you are going to be using on your extremely small Joyent VM, why waste time and complexity putting your OpenVPN setup inside Docker? Seems unnecessary.
评论 #6363457 未加载
评论 #6363434 未加载
评论 #6362804 未加载
j_sover 11 years ago
Funny to see this specifically w&#x2F; Joyent, the SmartOS zone gurus.
zenoconover 11 years ago
&gt; Joyent Ubuntu image comes with an “optimized kernel”. It might be optimized, but it doesn’t have AUFS support, so you want to install an official Ubuntu kernel instead<p>Why AUFS?
评论 #6363271 未加载
评论 #6363268 未加载
dingalingover 11 years ago
IPSec is one of the few instances where I have encountered consistent ( irregular ) kernel panics and when a panic ensues from a containerized app.. it is of course the &#x27;host&#x27; kernel that is panicking. So all your containers are hosed.<p>I only run VPNs through virtualized kernel instances now; if they fail, the hypervisor restarts them. Nothing else affected.
评论 #6363464 未加载
zobzuover 11 years ago
oh look, the daily HN spam from docker blogs<p>&#x2F;has karma, uses it.
somberinadover 11 years ago
Just trying to understand Docker and hence the question. How is it different from the HPUX or Solaris Package managers? Maybe this question itself shows my age :)
iancarrollover 11 years ago
What about DigitalOcean? 2x the RAM, cheaper.
评论 #6363871 未加载