Why won't Docker install on my older Mac? Your macOS is probably too old
Tags: docker, tooling, help
Published: 2024-01-16 16:19:48

*[This post was originally published on the Shipyard blog](https://shipyard.build/blog/installing-docker-on-older-mac/)*

---

A few days ago, I tried manually upgrading Docker Desktop on my personal 2015 MacBook Pro (running macOS Mojave 10.14.6). I went to <a href="https://docs.docker.com/get-docker/" target="_blank">Docker’s website</a> and downloaded the newest image for my Intel-based Mac, only to find an unhelpful and misleading message from macOS:

**Warning: Docker DMG file is corrupt.**

![Docker.dmg is corrupt on macOS](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gmcfmdzpedktdjutfjwt.png)

Of course I went back to make sure I didn't click on the ARM version and downloaded a brand new copy, but again, the “corrupt image” warning. A few panicked minutes of thinking I got MITM'd later, I realized it wasn't a corrupt image at all: my macOS was too old to install the latest and greatest version of Docker.  

According to <a href="https://docs.docker.com/desktop/install/mac-install/#system-requirements" target="_blank">Docker's macOS System Requirements</a>:
```txt
Docker supports Docker Desktop on the most recent versions of macOS. 
That is, the current release of macOS and the previous two releases. 
As new major versions of macOS are made generally available, 
Docker stops supporting the oldest version and supports the newest 
version of macOS (in addition to the previous two releases).
```

The current version of Docker (4.26.0 as of January 2024) supports macOS Sonoma, Ventura, and Monterey. Mac users on Big Sur or an earlier OS will need to find an alternate solution.

I did some digging and found a few different approaches to getting Docker working on my Mac.

### Option 1 (Obvious and scary): Upgrade macOS
It’s important to consider whether your Docker use case warrants an entire OS upgrade. You might already be avoiding an upgrade for a myriad of reasons. For a few key reasons to think twice before upgrading, check out <a href="https://www.howtogeek.com/842706/should-you-wait-to-upgrade-to-the-latest-version-of-macos/" target="_blank">this article from How-To Geek</a>. Remember, you have other software that might break because of the upgrade, and OS upgrades have been known to slow down older hardware.

These upgrades can take a good chunk of time and are a pretty big commitment if you are just trying to test out a new feature in <a href="https://www.docker.com/blog/new-docker-compose-v2-and-v1-deprecation/" target="_blank">Compose…</a>

Before upgrading, you might also want to check that your Mac hardware can run Docker’s required macOS version. <a href="https://www.macworld.com/article/673697/what-version-of-macos-can-my-mac-run.html" target="_blank">This article from Macworld</a> lists the Macs supported by each macOS release since OS X Mountain Lion.

### Option 2 (Quick and easy): Find an old supported version of Docker
Many users, myself included, choose to stay on an older version of macOS on older hardware for performance and/or compatibility reasons. Users with machines that are over four or five years old have no option to upgrade to the latest macOS version (by legitimate means, at least).

If you’d prefer to keep your current OS, you can simply install an older version of Docker. These aren’t listed alongside current downloads on the Docker website, but the links are still live.

<a href="https://gist.github.com/franklinyu/5e0bb9d6c0d873f33c78415dd2ea4138" target="_blank">This (unofficial) Gist</a> includes the download links to previous Docker versions, expanded by <a href="https://gist.github.com/FranklinYu/5e0bb9d6c0d873f33c78415dd2ea4138?permalink_comment_id=4724306#gistcomment-4724306" target="_blank">this recent comment</a>. For versions 4.18.0 and up, you can grab a download link directly from the <a href="https://docs.docker.com/desktop/release-notes/" target="_blank">release notes</a> page.

When choosing a previous Docker version, cross reference with the release notes. This way, you can find a version that works with your current OS and includes the features and bug fixes that you need for your use case.

### Option 3 (Fun and complex): Running a Linux VM

If you’re unable to upgrade macOS and need the latest version of Docker, there’s a last resort: you can run a Linux distro in a VM (via VirtualBox or QEMB) and install Docker there. This will allow you to use the same version of Docker on your Mac (Docker on macOS runs in a LinuxKit VM), however it’ll be much less optimized and will require more config since you won’t be running it natively.

Docker <a href="https://docs.docker.com/desktop/install/linux-install/#supported-platforms" target="_blank">supports Ubuntu, Debian, and Fedora-based distros</a>.

## More Docker for your Mac

The swap from Intel to Apple Silicon added complexity to third-party software releases, and three years in, <a href="https://www.lifewire.com/the-end-of-intel-macs-7569716" target="_blank">we’re seeing shorter support lifespans for Intel Macs</a>. If an OS upgrade isn’t in the cards for you, it’s nice to know that Docker still hosts its older DMGs and that there’s support for mainstream Linux distros.

*Want to automate your Docker builds in your CI? Check out this post I did a few months back on <a href="https://shipyard.build/blog/gha-recipes-build-and-push-container-registry/" target="_blank">using GitHub Actions to build and push Docker images to a container registry</a>.*