TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Docker + Joyent + OpenVPN = Bliss

71 点作者 jpetazzo超过 11 年前

11 条评论

motiejus超过 11 年前
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 未加载
noonespecial超过 11 年前
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.
biturd超过 11 年前
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 未加载
zeckalpha超过 11 年前
I was hoping this would be a mapping between containers and zones.
评论 #6364183 未加载
res0nat0r超过 11 年前
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_s超过 11 年前
Funny to see this specifically w&#x2F; Joyent, the SmartOS zone gurus.
zenocon超过 11 年前
&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 未加载
dingaling超过 11 年前
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 未加载
zobzu超过 11 年前
oh look, the daily HN spam from docker blogs<p>&#x2F;has karma, uses it.
somberinad超过 11 年前
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 :)
iancarroll超过 11 年前
What about DigitalOcean? 2x the RAM, cheaper.
评论 #6363871 未加载