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.

Ask HN: Do you trust/install Docker in your personal computer?

33 pointsby coffekaesquealmost 6 years ago
I&#x27;m no longer using a separate computer from my employer and containers&#x27; security always worried me. Using VMs is very cumbersome in my opinion. I haven&#x27;t used Docker in years, do you think it&#x27;s safe enough now to install in your main computer (Linux host)? It&#x27;s not like I&#x27;m going to test malware inside the containers but there&#x27;s a lot of 3rd-party dependencies living there.<p>If you do trust Docker, what precautions would you take? Running without root is viable?<p>I&#x27;m aware of https:&#x2F;&#x2F;github.com&#x2F;docker&#x2F;docker-bench-security

11 comments

k4ch0walmost 6 years ago
Running without root is totally viable, it is in fact encouraged. Take a look at: <a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;engine&#x2F;security&#x2F;userns-remap&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;engine&#x2F;security&#x2F;userns-remap&#x2F;</a><p>I think the concern should be around what environment variables are required to run, what was in the base image, what volumes are mounted between container&#x2F;host thus persisted through run&#x27;s and don&#x27;t mount &#x2F;var&#x2F;run&#x2F;docker.sock! You should assume the container can be breached and make it as hard as possible to break out.
verdvermalmost 6 years ago
I think most people are ok running docker on their laptop &#x2F; personal &#x2F; work machines.<p>Running as non-root is totally viable, but root still seems to be the norm. You might look into configuring docker daemon to not open ports externally.
评论 #20209052 未加载
craftomanalmost 6 years ago
Container isolation based on a kernel that wasn&#x27;t prepared for this never happened. It&#x27;s like jails for BSD or cgroup for Linux IMHO. I have found one exploit valuable at $10K, capable of host escaping (RCE) that&#x27;s still active based on the seller. You may be sceptical but don&#x27;t forget this one: <a href="https:&#x2F;&#x2F;github.com&#x2F;Frichetten&#x2F;CVE-2019-5736-PoC?files=1" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Frichetten&#x2F;CVE-2019-5736-PoC?files=1</a>
jstewartmobilealmost 6 years ago
My Debian VM starts in seconds. Last docker image I had to use was Ubuntu, and it was enormous. For local purposes, I didn&#x27;t really see the point to using a docker container.<p>That, and I don&#x27;t particularly trust overlay filesystems.
评论 #20209643 未加载
评论 #20226145 未加载
Tehchopsalmost 6 years ago
I think being judicious about the source of your base images goes a long way towards safe usage.
tracker1almost 6 years ago
I&#x27;m pretty okay with it... if you&#x27;re really concerned, run it in a full virtual machine to isolate it.
katzeillaalmost 6 years ago
I don&#x27;t trust Docker since I have to install it from a third party repo, so I always run it on a separate machine and use ssh to send commands.
Waveletsalmost 6 years ago
What is your cause for concern?
评论 #20208997 未加载
ksynwaalmost 6 years ago
What are some use cases for running something like docker or podman on your personal computer? Genuinely curious.
评论 #20209309 未加载
pellaalmost 6 years ago
you can add extra safety like: <a href="https:&#x2F;&#x2F;gvisor.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;gvisor.dev&#x2F;</a> <i>&quot;A container sandbox runtime focused on security, efficiency, and ease of use.&quot;</i>
评论 #20209077 未加载
评论 #20210492 未加载
评论 #20209034 未加载
segmondyalmost 6 years ago
running applications in docker is safer than not running in docker. if you want to run multiple applications, you can use lxc (linux containers) instead.