DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Because the DevOps movement has redefined engineering responsibilities, SREs now have to become stewards of observability strategy.

Apache Cassandra combines the benefits of major NoSQL databases to support data management needs not covered by traditional RDBMS vendors.

The software you build is only as secure as the code that powers it. Learn how malicious code creeps into your software supply chain.

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

Related

  • The Evolution of Scalable and Resilient Container Infrastructure
  • Scaling Microservices With Docker and Kubernetes on Production
  • A Guide to Container Runtimes
  • Docker vs Kubernetes: Which to Use and When?

Trending

  • Agentic AI Systems: Smarter Automation With LangChain and LangGraph
  • How to Format Articles for DZone
  • Building a Real-Time Change Data Capture Pipeline With Debezium, Kafka, and PostgreSQL
  • Using Python Libraries in Java
  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. Replacing Docker Desktop With hyperkit + minikube

Replacing Docker Desktop With hyperkit + minikube

Using a Mac? Here's an alternative to Docker Desktop.

By 
Arnon Rotem-gal-oz user avatar
Arnon Rotem-gal-oz
·
Sep. 25, 21 · Tutorial
Likes (4)
Comment
Save
Tweet
Share
4.6K Views

Join the DZone community and get the full member experience.

Join For Free

MacOS is a Unix but it isn't a Linux so, unfortunately, if/when we need to use Linux-y things like docker we need to install a VM just like in the Windows world. That's of course also true for docker. 

Like most people, I've been using Docker Desktop for a lot of years to get my fix for containers. It works pretty well, good even for almost everything. I don't remember exactly when Docker desktop added support for running Kubernetes. That looks good on paper and technically it works but not without a price... (at least on my Mac) it also comes with fans a-blazing and the soundtrack of a 747 taking off. Luckily, most of the time I have access to remote Kubernetes servers so I rarely used the option but whenever I did (re)try it, I quickly turned it back off. 

Installing Kubernetes

Last month, I changed jobs and joined Kaltura, so I went through the whole new computer setup thingy (you know, the important stuff, like setting up a development font, themes for all editors, etc. :) ), I also decided to see if I can get Kubernetes running without paying the noise-tax — and it seems that its doable with a couple of simple steps:

Shell
 
brew install hyperkit
brew install minikube
minikube start


if you like you can also define the resources for the minikube image before you start it up 

Shell
 
minikube config set cpu <whatever>
minikube config set memory <whatever>


tada working Kubernetes without all the fan-fare (pardon the pun). Here's an image of Lens with my local cluster running 25+ containers (though you'd have to take my word that the machine is quiet :) )

Getting Docker to Run

At this point, you can kubectl deploy anything that is already existing - but what do you do if you want to deploy an image created locally? Well, that's not complicated either you need to build the image on the Docker minikube is using:

Shell
 
eval $(minikube docker-env)


you can then docker build -t <whatever> . (or any other docker command for that matter) as usual. 

It works so well I added the eval command to my .zshrc file and just stopped using docker desktop altogether. 

Docker Desktop license change

A few days after writing this, I saw that Docker is trying to monetize Docker Desktop and require a subscription license for businesses, so not only this seems to be working better (for me anyway) using hypekit+minikube can also be a good solution for devs who don't want/can't get their orgs to pay for a subscription so another plus here. 

if you uninstall docker desktop you will need to install the docker CLI which is still using an apache 2.0 license:

Shell
 
brew install docker


What About Podman? 

The Docker Desktop license change made this post rather popular. As I wrote above it seems that the Docker CLI is still Apache 2.0 (at the time of writing :) ), and so there's no need to drop it, if licensing is the reason for change. 

That said, there's also a complete alternative to Docker CLI called Podman. installing it on MacOS is the predictable 

Shell
 
brew install podman


Podman, like the docker CLI needs a Linux VM to work with if run on a mac. As it happens minikube also has Podman installed on its VM which you can utilize via eval $(minikube podman-env) — unfortunately, minikube has Podman v.2.2.1 and the version installed by brew is the latest (v.3.3.1) and they are not compatible.

If you also need Kubernetes, like I do, I'd stay with the Docker CLI. If, however, you just need to build containers, you can migrate to Podman easily by running

Shell
 
podman machine init # one time to download and setup a VM
podman machine start 


Podman seem to be compatible with the Docker CLI (though it adds a few specific commands like machine and system) so you can build/pull etc. like before. 

One note about building images with Podman: I tried building one of my existing Dockerfiles with Podman and got the following error: "Error: error creating build container: short-name resolution enforced but cannot prompt without a TTY". The reason is that while Docker assumes images come from Docker Hub by default, You need to specify them with Podman, so changing FROM apache/airflow:2.1.2 to FROM docker.io/apache/airflow:2.1.2 solved the problem 

Docker (software) Desktop (word processor) Kubernetes

Published at DZone with permission of Arnon Rotem-gal-oz, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • The Evolution of Scalable and Resilient Container Infrastructure
  • Scaling Microservices With Docker and Kubernetes on Production
  • A Guide to Container Runtimes
  • Docker vs Kubernetes: Which to Use and When?

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!