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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: As a web developer, do I have to know what Docker and Kubernetes are?

25 点作者 dprophecyguy超过 7 年前
Hey, everyone, i am a javascript web developer, I have worked on both Node and Angular (Back and Front) but right now on Front. I know docker and kubernets are all the rage but i was busy learning Node and Angular i had one and a half year of experience still getting better in both. So what i want to know is Why do we need Docker and Kubernetes as in simple term (Explain like i am 5) and i am also working on my side project so whether knowledge of them will help me to make a good decision regarding my projects. SORRY FOR BAD ENGLISH

10 条评论

sixhobbits超过 7 年前
At the risk of displeasing the Docker crowd, I would say you can get pretty far without them.<p>In general, I see a lot of people learning and using BuzzWord solutions for problems that they don&#x27;t have.<p>In most cases, you&#x27;ll have some problem and look for a solution to it. If your problem is spending a lot of time messing around with dependencies and deployments and &quot;but it works on my machine&quot; type issues, then Docker may well be the solution.<p>If you learn a solution and then see what problems it can solve (Hey, everyone is talking about Docker. Let me learn it too), you&#x27;ll end up frustrated and confused.<p>Of course, it&#x27;s a balance -- often you can learn about problems that you didn&#x27;t even know you had by learning about new technology. But so far I see more people erring towards &quot;Let&#x27;s fix these problems I don&#x27;t have&quot; than &quot;I&#x27;ll just keep doing things this slow old way because I don&#x27;t want to keep up with tech movements&quot;
评论 #15557134 未加载
评论 #15557506 未加载
mankash666超过 7 年前
Docker &amp; kubernetes are modern Dev ops tools - the former abstracts away the host specific quirks, and the latter allows managing many (docker) containers in production.<p>Should you learn this - it depends. If you plan on building microservices whose devops you&#x27;ll need to manage, docker is highly recommended. You can get away not learning kubernetes by relying on AWS ECS equivalents, and that&#x27;s probably what you should do as a beginner wanting to deploy.<p>If your app architecture is event-driven, and can be rest based AWS lambda is a great option where you don&#x27;t have to learn either. Beware of costs if invoking in the millions, but if your service ever scales to that, you&#x27;ve probably already found a lucrative opportunity that can afford experienced help
评论 #15557113 未加载
sd8dgf8ds8g8dsg超过 7 年前
Using docker can greatly improve your development situation. For example, you can use docker to define the full environment needed to run your web app, meaning you can have another dev running it with &quot;docker run&quot;, and not needing to install any local dependencies, as everything (web server, node etc) is contained inside the docker container. This turns out also be useful for your future self, when you in 2 years from now are having troubles re-creating the environment needed for running your service.<p>Docker orchestrate can further improve your development situation, in which you can use it to define and test out multiple virtual servers on your laptop, such as the database, the file server and the web server.
评论 #15556825 未加载
sumedh超过 7 年前
You can worry about Kubernetes later for now just understand docker basics. Docker really is a game changer.<p>Want to try something in Postgres 9.4, you can do it with just one command, want Rabbit MQ with web stomp enabled, get it with just one command.<p>Setting up Environments with Docker is ridiculously easy, Docker files are pretty intuitive and easy to understand.
togusa2017超过 7 年前
I was running my side project without docker and trust me it was making my life hell due to the difference in production and development environment and also a fear that if I drop this server how the hell am I gonna setup another server with a small amount of downtime. I started moving my side project to docker and in the process learned a lot about it. Now I can&#x27;t work without a docker . It&#x27;s not perfect but God it&#x27;s so much better
turtlebits超过 7 年前
You don&#x27;t have to, but docker + docker-compose is excellent for getting a development stack setup with extremely little effort (and other tooling you may need) - such as postgres&#x2F;mysql&#x2F;redis&#x2F;mongodb&#x2F;couchdb&#x2F;jenkins&#x2F;etc...<p>You don&#x27;t need to learn how to build containers. Just the basics of how docker works.
评论 #15560689 未加载
machinemob超过 7 年前
In the amount of time it took for you to write this question and parse the subsequent opinions, rants and religious arguments, you could have followed a basic Docker tutorial, written a simple Dockerfile and answered the more important questions: Is this useful to me? Can I be more productive with these tools?<p>:)
indescions_2017超过 7 年前
Yes. It&#x27;s ubiquitous now. It&#x27;ll be a bit like everyone around you talking about the &quot;Upside Down&quot;. And you have no idea because you never watch tv except for Emily Chang. Plus, you can understand it in under 1 hour:<p><a href="https:&#x2F;&#x2F;training.docker.com&#x2F;introduction-to-docker" rel="nofollow">https:&#x2F;&#x2F;training.docker.com&#x2F;introduction-to-docker</a><p>If you are into Node, I&#x27;d also get up to speed with Serverless Deployments and Lambda Functions. Buzzwords, yes. But also modern, powerful and game changing. And most importantly, you won&#x27;t have to worry about any devops internals ;)<p><a href="https:&#x2F;&#x2F;cloud.google.com&#x2F;functions&#x2F;" rel="nofollow">https:&#x2F;&#x2F;cloud.google.com&#x2F;functions&#x2F;</a>
twalla超过 7 年前
i&#x27;d suggest learning the following:<p>1) how to write dockerfiles [1]<p>2) docker build, tagging, and push<p>3) docker run and docker exec<p>4) docker-compose<p>anything beyond that is probably not worth it unless you&#x27;re also responsible for your infrastructure.<p>[1] <a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;engine&#x2F;userguide&#x2F;eng-image&#x2F;dockerfile_best-practices&#x2F;#minimize-the-number-of-layers" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;engine&#x2F;userguide&#x2F;eng-image&#x2F;dockerfil...</a>
nickjj超过 7 年前
I would say it&#x27;s worth learning Docker.<p>I&#x27;ve been using it since 2014 and it&#x27;s one of the best software related moves I&#x27;ve made.<p>I wouldn&#x27;t say I&#x27;m a super fan boy of anything, and I typically only use tools when they make my life way better. Docker is one of those tools because it helps me set up development environments for the web applications I develop, as well as help me move those apps to production seamlessly.<p>I&#x27;m a freelance dev so I have a lot of projects on my machine, and it&#x27;s amazing to be able to spin up and shut down each app in seconds and also hand everything over to a client and have them run 1 command to get everything up and running regardless of whether they are running Mac, Windows or Linux.<p>When it comes to production, it&#x27;s as simple as installing Docker and then running a few commands to have everything up and running with total confidence that it works. That&#x27;s what Docker can give you in the end with not too much effort.<p>The reason it&#x27;s a lot better than a VM is how fast and efficient it is. There&#x27;s no massive disk space overhead and containers start in milliseconds, not minutes. Honestly it&#x27;s not even comparable to a VM. There&#x27;s just too many wins that make it an entirely different beast.<p>If you don&#x27;t want to put in the 50 or 100+ hour grind of learning it on your own, I&#x27;ve assembled a 5 hour premium video course that will teach you how to dockerize your own web apps. You&#x27;ll walk away fully able to use Docker in the real world. There are node examples too. This course is everything I&#x27;ve learned in the last 3 years of using Docker and is filled with best practices from real world usage and feedback from hundreds of people.<p>You can find that course at <a href="https:&#x2F;&#x2F;diveintodocker.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;diveintodocker.com&#x2F;</a>.<p>If you have any questions let me know. I&#x27;d be glad to help. I&#x27;m also a Docker Captain (Docker reached out to me to become a trusted content provider) so I&#x27;m not just pitching you on buying something (if I didn&#x27;t fully believe in Docker I wouldn&#x27;t be spending my time personally using it).<p>I also have plenty of free Docker related material on my blog[0] and Youtube[1]. The first hour of my premium course is available on Youtube, no strings attached.<p>[0]: <a href="https:&#x2F;&#x2F;nickjanetakis.com&#x2F;blog&#x2F;tag&#x2F;docker" rel="nofollow">https:&#x2F;&#x2F;nickjanetakis.com&#x2F;blog&#x2F;tag&#x2F;docker</a><p>[1]: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=XeSD17YRijk&amp;list=PL-v3vdeWVEsXT-u0JDQZnM90feU3NE3v8" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=XeSD17YRijk&amp;list=PL-v3vdeWVE...</a>