Davanum Srinivas
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Docker Desktop alternatives ## Overview There are several aspects to what Docker is and what it is used for on Windows and MacOS. One big aspect is that there is a Virtual Machine (basically linux) on both platforms inside which the containers run. There is a UI that users can use to manage the lifecycle of this virtual machine. There is a socket that is made available outside of the VM that offers a REST API. The docker CLI makes use of this socket as well to start/stop/manage containers using the REST API. ## What do we really need - Needless to say, we would want to run existing container images - we should be able to build new images from existing source files - for our purposes, we should be able to build k8s (really complex build system) - support for developer oriented tools like tilt and skaffold would be good - Ability to run k8s using kind is definitely required ## Alternatives - [podman](https://github.com/containers/podman) - [Nerdctl](https://github.com/containerd/nerdctl) - [Lima](https://github.com/lima-vm/lima) - [Rancher Desktop](https://github.com/rancher-sandbox/rancher-desktop) - [colima](https://github.com/abiosoft/colima) - [Docker Engine](https://github.com/docker/engine) - [minikube](https://github.com/kubernetes/minikube) ## How do these alternatives work podman effort from Redhat is closest to providing the same exact experience as docker, well except for a UI. podman provides a CLI, API etc that mimic exactly what docker provides. podman documents their compatability guarantee [Podman REST API and Docker compatibility](https://podman.io/blogs/2020/07/01/rest-versioning.html). podman can be run under WSL2 in Windows and has the capability to start a virtual machine on MacOS (see [Migrating from Docker to Podman](https://marcusnoble.co.uk/2021-09-01-migrating-from-docker-to-podman/)). Also podman uses crio as container runtime. nerdctl from CNCF's containerd project does provide a CLI that mimics docker CLI, but does not provide a REST API similar to that of docker. this CLI talks directly to containerd's REST API instead. One example of how nerdctl can be used with WSL2 is [here](https://medium.com/geekculture/move-away-from-docker-now-and-utilize-wsl2-systemd-genie-containerd-with-nerdctl-d5f729dcf227) Lima builds on top of nerdctl and containerd and wraps it around a VM for running on MacOS. No docker REST API as it uses nerdctl Rancher Desktop uses nerdctl and containerd as well on both Windows (WSL2) and MacOS (using Lima). By design it is only meant for kubernetes use cases and does not support the docker REST API (since nerdctl does not provide one). So Rancher Desktop embeds a Kubernetes engine and the whole effort is about making k8s available on desktops and not as a general purpose docker replacement. colima adds a MacOS UI around Lima. No Windows. Minikube is a way to run k8s on both MacOS and Windows with a [variety of drivers](https://minikube.sigs.k8s.io/docs/drivers/) including KVM, Parallels, docker, podman etc. With this driver pattern it is way better than other options for running k8s like kind or microk8s (see [here](https://matt-rickard.com/docker-desktop-alternatives/)). Last but not the least the docker engine for linux (used by docker desktop) is still opensource and can be [used with WSL2 on Windows](https://jason-umiker.medium.com/replacing-docker-desktop-with-wsl2-and-or-rancher-desktop-on-windows-5e036f9dc3a4) or using a VM on MacOS. On MacOS, one last permutation is that Lima can be used with docker-ce as well. ## What is so hard about running things in a VM Docker Engine (on linux) makes it so simple to mount directories, expose ports and so many other things that a developer depends on to iterate on building their container images and for production using some container orcehestrator as well. These things are really hard to do on Windows, WSL helps but is not quite there yet in terms of linux compatibility. MacOS with its FreeBSD roots is in the same boat for example with respect to cgroups and hence needs VMs. So same problem as with windows about making things easily exposed from host to vm and vice versa. ## What do we avoid - Avoid getting into how best to support Docker REST API. especially without docker engine (podman). There's just too many things (bugs/features) that we don't need as a business that we would end up getting sucked into. - Avoid things that have k8s built-in like Rancher Desktop, we want to pick our versions of things to run (kind/containerd etc) - Avoid cri-o based solutions (like podman) ## Recommendations - So where do we spend our time and effort - Help adopt a driver based pattern either at Tanzu/TCE CLI level or in Kind itself that Tanzu/TCE CLI depends on. This is similar to the pattern used by minikube and will help with integration with proprietary systems like Fusion as well (that runs both on windows and MacOS, has a freemium version too). - Pitch into the containerd/nerdctl eco system and position that as the best way for say TCE to be used in the community. So we would pick WSL2 on windows and Lima on MacOS for people to try TCE (using the driver based pattern above for sure). ## Longer term vctl in fusion has some ability to deploy kind based clusters [[1]](https://rguske.github.io/post/vmware-vctl-kind-writing-configuration-failed/)[[2]](https://docs.vmware.com/en/VMware-Fusion/12/com.vmware.fusion.using.doc/GUID-1CA929BB-93A9-4F1C-A3A8-7A3A171FAC35.html)[[3]](https://github.com/VMwareFusion/vctl-docs/blob/master/docs/kind.md). The current situation with docker desktop is a good time to consider other futures for fusion. - How much of vctl could we open source? - Could we have a free-as-in-beer version to target use cases listed above?

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Google Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully