gvisor VS for-mac

Compare gvisor vs for-mac and see what are their differences.

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
gvisor for-mac
74 93
15,909 2,438
0.9% 0.1%
9.9 3.1
7 days ago 10 months ago
Go
Apache License 2.0 -
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

gvisor

Posts with mentions or reviews of gvisor. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-11-26.
  • Lies we tell ourselves to keep using Golang
    16 projects | news.ycombinator.com | 26 Nov 2024
    To be pedantic for a moment...

    > You can't use Go to write a kernel ...

    Not a production kernel, but MIT did use Go to "study the performance trade-offs of using a high-level language with garbage collection to implement a kernel" [1]

    There is also gVisor [2] which implements, as best as I can describe, a kernel in user space. It's intent is to intercept syscalls made in containers and to redirect its execution in a sandbox.

    > ... program a microcontroller ...

    I'm not sure if one would classify this as a microcontroller, but USB Armory did write a, iirc, Go compliant runtime for bare metal ARM and RISC-V [3]

    [1] https://github.com/mit-pdos/biscuit

    [2] https://gvisor.dev/

    [3] https://github.com/usbarmory/tamago

  • Comparing 3 Docker container runtimes - Runc, gVisor and Kata Containers
    5 projects | dev.to | 29 Oct 2024
    Although the documentation also mentions "youki", that is mentioned as a "drop-in replacement" of the default runtime basically doing the same, so let's stick with runc. The second runtime will be Kata runtime from Kata containers, since it runs small virtual machines which is good for showing how differently it uses the CPU and memory. This also adds a higher level of isolation with some downsides as well. And the third runtime will be runsc from gVisor which is a perfect third runtime to see how we can run containers and still have a little more secure isolation. I will show how we can recognize the differences by running commands from the isolated environments and from the host.
  • GVisor: Linux-Compatible Sandbox
    3 projects | news.ycombinator.com | 15 Oct 2024
    I find the README of the repo much better to quickly understand what this software is and isn't.

    https://github.com/google/gvisor

  • Unfashionably secure: why we use isolated VMs
    6 projects | news.ycombinator.com | 25 Jul 2024
    If you think about it virtualization is just a narrowing of the application-kernel interface. In a standard setting the application has a wide kernel interface available to it with dozens (ex. seccomp) to 100's of syscalls. A vulnerablility in any one of which could result in complete system compromise.

    With virtualization the attack surface is narrowed to pretty much just the virtualization interface.

    The problem with current virtualization (or more specifically, the VMM's) is that it can be cumbersome, for example memory management is a serious annoyance. The kernel is built to hog memory for cache and etc. but you don't want the guest to be doing that - since you want to overcommit memory as guests will rarely use 100% of what is given to them (especially when the guest is just a jailed singular application), workarounds such as free page reporting and drop_caches hacks exist.

    I would expect eventually to see high performance custom kernels for a application jails - for example: gVisor[1] acts as a syscall interceptor (and can use KVM too!) and a custom kernel. Or a modified linux kernel with patched pain points for the guest.

    [1] <https://gvisor.dev/>

  • Syd the perhaps most sophisticated sandbox for Linux
    1 project | news.ycombinator.com | 17 Jul 2024
  • Hacking Alibaba Cloud's Kubernetes Cluster
    3 projects | dev.to | 1 Jul 2024
    Hillai: Following our research, Alibaba took several steps to address the vulnerabilities we discovered. They limited image pull secret permissions to read-only access, preventing unauthorized uploads. Additionally, they implemented a secure container technology similar to Google's gVisor project. This technology hardens containers and makes them more difficult to escape from, adding another layer of security.
  • We Improved the Performance of a Userspace TCP Stack in Go by 5X
    4 projects | news.ycombinator.com | 5 Jun 2024
    If you want to use netstack without Bazel, just use the go branch:

    https://github.com/google/gvisor/tree/go

    go get gvisor.dev/gvisor/pkg/tcpip@go

    The go branch is auto generated with all of the generated code checked in.

  • My VM is lighter (and safer) than your container
    12 projects | news.ycombinator.com | 14 May 2024
  • Maestro: A Linux-compatible kernel in Rust
    7 projects | news.ycombinator.com | 3 Jan 2024
    Isn't gVisor kind of this as well?

    "gVisor is an application kernel for containers. It limits the host kernel surface accessible to the application while still giving the application access to all the features it expects. Unlike most kernels, gVisor does not assume or require a fixed set of physical resources; instead, it leverages existing host kernel functionality and runs as a normal process. In other words, gVisor implements Linux by way of Linux."

    https://github.com/google/gvisor

  • Google/Gvisor: Application Kernel for Containers
    3 projects | news.ycombinator.com | 2 Jan 2024

for-mac

Posts with mentions or reviews of for-mac. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-30.
  • Caveat for Docker Dev Environment Rug Pull
    1 project | news.ycombinator.com | 18 Aug 2023
  • Emacs 29.1 Released
    12 projects | news.ycombinator.com | 30 Jul 2023
    I use containers on Mac and Windows for development (and we deploy on linux). Docker for Mac is _unusably_ slow in my experience. The VM that it runs is a giant resource hog and a battery hog, and doesn't support ipv6 [0] Docker Desktop itself is (another) resource hog, wildly buggy, and painfully slow. It's the epitome of "shitty electron app".

    On windows, docker desktop has all of the same issues as it does on mac. Docker's concept of volumes and file permissions on windows are nonsense. Windows updates and Docker Desktop regularly decide to disagree, [1] It's networking support interferes with other applications (like OpenVPN and the Xbox Game Center) [2].

    [0] https://github.com/docker/for-mac/issues/1432

    [1] https://github.com/docker/for-win/issues/599

    [2] https://github.com/docker/for-win/issues/1976

  • Error deploying subgraph on local
    2 projects | /r/thegraph | 11 Jul 2023
    version: '3' services: graph-node: image: graphprotocol/graph-node ports: - '8000:8000' - '8001:8001' - '8020:8020' - '8030:8030' - '8040:8040' depends_on: - ipfs - postgres extra_hosts: - host.docker.internal:host-gateway environment: postgres_host: postgres postgres_user: graph-node postgres_pass: let-me-in postgres_db: graph-node ipfs: 'ipfs:5001' matic: 'matic:http://localhost:8545/' GRAPH_LOG: info ipfs: image: ipfs/go-ipfs:v0.10.0 ports: - '5001:5001' volumes: - ./data/ipfs:/data/ipfs postgres: image: postgres ports: - '5432:5432' command: [ "postgres", "-cshared_preload_libraries=pg_stat_statements" ] environment: POSTGRES_USER: graph-node POSTGRES_PASSWORD: let-me-in POSTGRES_DB: graph-node # FIXME: remove this env. var. which we shouldn't need. Introduced by # , maybe as a # workaround for https://github.com/docker/for-mac/issues/6270? PGDATA: "/var/lib/postgresql/data" POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C" volumes: - ./data/postgres:/var/lib/postgresql/data
  • ERR_CONNECTION_REFUSED on localhost
    1 project | /r/docker | 6 Jul 2023
    This bug has been around years and still not fixed as far as I know - see https://github.com/docker/for-mac/issues/3926
  • Stuck at "Starting the Docker Engine..." on macOS
    1 project | /r/docker | 23 Jun 2023
    You're not wrong, and not the first to raise this https://github.com/docker/for-mac/issues/6061
  • Docker Desktop is dead on Mac M1
    2 projects | /r/docker | 5 Jun 2023
    https://github.com/docker/for-mac/issues/6867 This github issue might help. What worked for me was deleting the ~/.docker/buildx folder
  • PiHole + docker DHCP
    1 project | /r/docker | 29 May 2023
    There has been an outstanding bug [Docker Github] for years with the Docker team who do not seem to be able (or want to) address this - they have closed more than one issue but its still there.. The latest bug report is this one [Docker Github] but I honestly would not bother following it - no idea why they are not fixing this.
  • Mysterious Server Crashes
    1 project | /r/jellyfin | 22 May 2023
    Have you checked if any of your other Docker containers become unresponsive at the same time? If so, it could be Docker. I had this issue on Docker for months until they finally came out with an update that works for me (Docker Desktop 4.19.0 for Mac).
  • Very slow (local) direct playing with no apparent setup changes all of a sudden
    1 project | /r/jellyfin | 22 May 2023
    It might have something to do with Docker? I was having issues a few months ago with all my containers becoming unreachable or very slow many times per day. I finally upgraded to Docker Desktop 4.19.0 (I’m on a Mac) and everything resolved. There were a few GitHub issues about it, too. You could try running a speedtest within different Docker containers and seeing if there’s a discrepancy. You could also check your RAM and CPU usage for different containers using something like Glances; it could lead to a clue.
  • noob cannot connect to Docker Adguardhome
    1 project | /r/docker | 19 Apr 2023

What are some alternatives?

When comparing gvisor and for-mac you can also consider the following projects:

firecracker - Secure and fast microVMs for serverless computing.

UTM - Virtual machines for iOS and macOS

podman - Podman: A tool for managing OCI containers and pods.

runtime - Kata Containers version 1.x runtime (for version 2.x see https://github.com/kata-containers/kata-containers).

wsl-vpnkit - Provides network connectivity to WSL 2 when blocked by VPN

kata-containers - Kata Containers is an open source project and community working to build a standard implementation of lightweight Virtual Machines (VMs) that feel and perform like containers, but provide the workload isolation and security advantages of VMs. https://katacontainers.io/

projector-installer - Install, configure and run JetBrains IDEs with Projector Server on Linux or in WSL

sysbox - An open-source, next-generation "runc" that empowers rootless containers to run workloads such as Systemd, Docker, Kubernetes, just like VMs.

podman-compose - a script to run docker-compose.yml using podman

containerd - An open and reliable container runtime

valet - A more enjoyable local development experience for Mac.

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured

Did you konow that Go is
the 4th most popular programming language
based on number of metions?