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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Docker: The good parts

123 点作者 shrikrishna超过 11 年前

12 条评论

IanCal超过 11 年前
It is pretty cool, but I&#x27;m starting to see a lot of comments like this about the Dockerfile:<p>&gt; I don’t need to worry about the version of node, nor of the dependencies nor anything else. If it’s worked for them, it’ll work for me. As simple as that!<p>This isn&#x27;t true as far as I can tell, the Dockerfile will have a series of lines like this<p><pre><code> RUN apt-get install x RUN apt-get install y RUN apt-get install z RUN cat &quot;config line&quot; &gt;&gt; &#x2F;etc&#x2F;config.conf </code></pre> which does not guarantee success any more than a makefile on a clean install would. Those versions can change, bugs can be introduced or features changed and the config file location or type can change. If you build it today and I tomorrow then we could have different images running.<p>I&#x27;m aware that this file is to generate a &quot;run anywhere&quot; image, but I worry people might be treating it as a huge step on from installation scripts when it&#x27;s very similar. The image part afterwards, however, is a huge step onwards.
评论 #7050073 未加载
评论 #7052459 未加载
评论 #7050835 未加载
评论 #7049481 未加载
评论 #7051092 未加载
评论 #7049726 未加载
评论 #7050069 未加载
ilaksh超过 11 年前
Sandboxed applications that take care of all of the dependencies is a no-brainer for me. Amazingly I see quite a lot of focus on separating out all of an applications dependencies into separate containers and then linking them. I feel like in most circumstances that is not taking advantage of Docker. Unless you have quite a huge amount of time invested in learning Puppet&#x2F;Chef or whatever, have nothing to do except play around with Puppet&#x2F;Chef configs all day (its your only job), and are looking for a reason to keep using them with Docker, which is what I think is why some people are using links when things would run just fine and would be simpler if everything was living inside one container.
评论 #7049454 未加载
评论 #7049037 未加载
skrebbel超过 11 年前
Complete off topic nitpick, but reading this font made my head hurt. I didn&#x27;t manage to read till the bottom, even though I&#x27;m interested. Could I suggest a font that has the same x-height for each character?
评论 #7049395 未加载
评论 #7050768 未加载
hootener超过 11 年前
Here are three instances where Docker made my life way easier:<p>Docker as an educational tool can be pretty powerful. One of the most annoying parts of CS courses is the initial install&#x2F;configure&#x2F;dependency wrangling you have to do to install required applications in whatever courses you happen to be taking that semester. Since courses may have different and conflicting requirements, just preparing your machine to use for coursework can be a nightmare.<p>Docker solved this problem for me as a student, and I can imagine it being solved easily for others if professors would just latch on to it and provide DockerFiles for their students. Sure, OS X and Windows users may have the initial hassle of setting up VirtualBox or what not, but I think the trade off is worth it. And when the course is over, there&#x27;s no longer a lot of development software sitting around your hard drive that you may never use again. Take any source you developed, the DockerFile you used, throw it all in a repo and then you can easily replicate the build environment if you need it later on.<p>As a developer, I use Docker to replicate &quot;large scale&quot; deployments on my own machine. Typically this is just a database container, a nodeJS server container, and a container for my web application code. However, as an exercise I&#x27;ve spun up a container with NGINX to act as load balancers for multiple running instances of my webapp container. It was simple, repeatable, and can be easily replicated on production servers.<p>Finally, onboarding of new developers becomes MUCH simpler with Docker. I developed bash scripts to quickly spin up containers for development and production workflows. So onboarding new developers to my codebase is fairly easy. I distribute the source code of the project, a repo that contains DockerFiles and bash scripts, and a small readme. Developers are typically up and running in less than an hour, regardless of their operating system of choice.
评论 #7052090 未加载
ohmygeek超过 11 年前
I have been using docker as an application sandbox for a while now. It seems like a breeze! Instead of concentrating on setting up and resolving dependencies, I can concentrate on the development. That is the best take away for me from docker!
Oculus超过 11 年前
I&#x27;ve been using Docker as a sandbox for an online contest judge. I&#x27;m working to add in SELinux into the Docker container as well. So far, its been working great for me.<p>I&#x27;m not sold on using Docker for development though. I haven&#x27;t attempted to setup multiple Vagrant machines so maybe that&#x27;s why I&#x27;m not seeing the value, but setting up single dev machines through Vagrant is just so simple and straight forward.
saintfiends超过 11 年前
This maybe slightly OT, but could someone explain what etcd does?. CoreOS hosts containers and an etcd instance run on host (master) and on each container. Is that it?<p>Let&#x27;s say I&#x27;m on on a VPS and I&#x27;m running multiple instances of CoreOS each hosting multiple containers. Can etcd be used in this case?
评论 #7052763 未加载
评论 #7050838 未加载
iffycan超过 11 年前
We use docker for on-demand temporary PostgreSQL databases (for testing). Being able to get a clean db in 1 second is pretty neat. In addition to the docker stuff, there&#x27;s another process that destroys containers over X minutes old.
评论 #7051758 未加载
trothamel超过 11 年前
I like the idea of a sandboxed application, but I worry about the security implications - what happens if there&#x27;s a security fix, but the creator of the Docker version is AWOL?
评论 #7049206 未加载
评论 #7049157 未加载
abrussak超过 11 年前
Your Google Analytics is showing: <a href="http://imgur.com/D8vWM3k" rel="nofollow">http:&#x2F;&#x2F;imgur.com&#x2F;D8vWM3k</a><p>:)
评论 #7049374 未加载
yachtintransit超过 11 年前
cute headline :) ( at least I think so as a node JavaScript developer ) . all fun aside, I love docker ( and previously vagrant ) as an on demand mobile back end for native iOS and android Dev. it works isolate, disconnected , and can be deployed when I need to stage for reviews . its great !
评论 #7049494 未加载
评论 #7049078 未加载
Jimbotron超过 11 年前
Docker and LXC looks interesting. What is your experience of the performance overheads of using containers?
评论 #7049754 未加载