Install Ubuntu on Mac: Dual Boot, VM, or Docker
Install Ubuntu on Mac with the right path for Intel or Apple silicon: compare dual-booting, virtual machines, and Docker to decide how much macOS to keep.

tl;dr the short answer
Installing Ubuntu on a Mac means running the Linux operating system on your Apple computer, either beside macOS, inside a virtual machine, or in a Docker container. Choose the method and Ubuntu download for your Mac’s Intel or Apple Silicon chip: dual-booting shares disk space and requires a restart, a virtual machine runs Ubuntu alongside macOS, and Docker provides a lightweight, disposable command-line environment. The right option depends on your hardware, available resources, and whether you need a full Ubuntu desktop or just a quick Linux environment.
Think of a Mac as a well-furnished apartment you didn’t design. It works well, but sometimes you want your own kitchen and your own rules.
Ubuntu, a popular version of Linux (a free operating system), can be that space, though getting it onto a Mac takes some planning.
Whether your Mac has an Intel chip or Apple Silicon (Apple’s own processor), how much of macOS you want to keep, and what you need Linux for all shape the best route.
This guide covers dual-booting, running Ubuntu in a virtual machine (software that simulates a separate computer), and trying it in Docker (a tool for running isolated software), plus a desktop and editor setup that makes Ubuntu feel like yours.
Before You Install Ubuntu on Mac
A little prep now saves a stalled install later, so we’ll cover what to check first.
Can your Mac run Ubuntu?
Yes, you can load Ubuntu on a Mac, but it depends on the machine. Compare your processor (the CPU, the chip that does the work), RAM (short-term memory), and free disk space against Ubuntu’s published minimums.
Confirm you’re running macOS, then note whether you have an Intel or Apple Silicon (Apple’s own chip) Mac. It’s the chip, not the year you bought it, that decides which build you need. Check Apple’s Boot Camp notes alongside those requirements too.
Consider a student with an older MacBook who wants Linux for a class project. A quick check saves them an afternoon of wasted effort. Check first, download second. If that laptop is a MacBook Air, our full guide to installing Linux on that model is the next step.
Grab the right Ubuntu ISO file
An ISO file is a single disk image holding everything the installer needs. Get yours from the official Ubuntu download page, and choose an LTS (long-term support) release. Then match the build to your processor’s architecture, the underlying chip design.
Intel and Apple Silicon Macs need different files, so grab the one for your chip, not the one that looks newest.
Get installer media and free disk space
Your installer and your disk each need a little setup. Work through these:
- Blank DVD or USB drive: a blank DVD or a USB (Universal Serial Bus) stick can hold the installer.
- Minimum USB size: the drive must fit the whole ISO file, so check its size first.
- Format the USB drive: erase it and back up anything on it, since the installer overwrites what’s there.
- Partition the hard drive: carve out a section of your internal drive for Ubuntu so macOS keeps its own space.
- Free space for Linux: you can only split space that’s actually free, so clear room before you start.

Dual-boot Ubuntu Alongside MacOS
Dual-boot doesn’t run both systems at once. It lets you pick one at startup, so macOS and Ubuntu can share the same Intel Mac. Apple Silicon Macs don’t offer native dual-boot, so confirm your chip before you start.
Start your Mac from the installer
Restart your Mac and hold the Option key until the boot menu appears. Select USB or EFI Boot, which is the firmware’s own startup option, to load the Ubuntu installer. If you’re booting from a DVD, you don’t need the Option key at all.
Think of a developer with an older Intel MacBook who needs macOS for client work but wants Ubuntu for everything else.
Holding Option at startup is the only step that gets them into the installer, so they can try Ubuntu without giving up their daily tools.
Step through the Ubuntu installer
Work through the prompts in order, and set these as you go:
- Language and keyboard: Choose both first so the rest of the screens make sense.
- Updates and third-party software: Choose to download updates and third-party software during setup.
- Install alongside macOS: Pick this so Ubuntu gets its own space next to your existing system.
- Region and time zone: Select yours.
- User account and login: Create your user account and choose a login option.
Splitting your drive with Boot Camp Assistant
Start by creating a bootable USB drive with the Ubuntu installer. Then, in Boot Camp Assistant, drag the divider to partition your drive and set how much space Ubuntu gets.
Any data on the new partition is erased, so copy anything important somewhere safe first. Don’t skip this.
Finish up and boot into Ubuntu
Restart when the installer prompts you. Then hold Option again and select Ubuntu at the boot menu. Mac Wi-Fi, trackpad, and graphics card (GPU) driver issues are the first things to check on that initial boot. Sort those out, and you’re set.
Run Ubuntu in a Virtual Machine
A virtual machine (VM) is a software computer that runs inside your Mac. Think of a student who needs Ubuntu for one course but still wants macOS for everything else. A VM lets you run Ubuntu alongside macOS, not instead of it.
Set up VirtualBox for Ubuntu
Start by downloading and installing VirtualBox, then create a new VM. Work through these settings before you launch the installer:
- Memory, disk, and CPU: Give the VM enough of each to run Ubuntu comfortably.
- EFI and video memory: Enable EFI (Extensible Firmware Interface, the modern way a system starts up) and raise video memory for the display.
- Disk: When the installer asks, erase the virtual disk for a quick start or choose manual partitioning for more control. Erasing only wipes the VM’s virtual disk, so your Mac’s files stay put.

Add Guest Additions for better performance
Once Ubuntu is installed, add Guest Additions (VirtualBox’s add-on tools for the guest system). According to a Finnish paper on virtualization with VirtualBox, the process comes down to three steps:
- Insert the Guest Additions image from the VM’s Devices menu.
- Run its installer in a terminal inside Ubuntu.
- Restart the VM.
It improves performance and functionality, so don’t skip it.
Install Ubuntu with Parallels Desktop
If you’d rather skip VirtualBox, Parallels Desktop is the other route. Install it, then create a VM from an ISO (a disk image file that holds the Ubuntu installer). Parallels auto-detects the configuration, so the settings come pre-filled.
Review the resources and network settings, then install Ubuntu in the VM.
Try Ubuntu in Docker Instead
If you only need Ubuntu for a quick test, Docker is the lightest route. There are no partitions to resize and no reboot to sit through, so here’s how we get you a shell.
Pull and run an Ubuntu container
First, install Docker Desktop, the app that runs containers (self-contained environments) on your Mac. Open it and wait until it reports that Docker is running. Then download the Ubuntu image with docker pull ubuntu.
Docker stores the image on your Mac, so you only pull it once.
Next, start a container with an interactive shell:
docker run -it --rm ubuntu bash
The -it flags give you a terminal you can type into, and --rm deletes the container when you exit. You’re now at a root prompt inside Ubuntu.
Before you install anything, refresh the package lists with apt update. The image doesn’t come with up-to-date package lists, so this step comes first. Then apt install -y git adds a tool the same way it would on a full Ubuntu install.
Picture a Linux user on a MacBook who needs to check a deploy script against a clean Ubuntu system. They pull the image, start the container, install the script’s dependencies, and run it.
Once it passes, they type exit, and the whole environment disappears without touching the Mac.
This is a disposable Ubuntu, not a permanent one. Nothing you install follows you back to your Mac. Clean slate, every time.

Choosing Between the Install Methods
The right route depends on how much macOS you need to keep and what your hardware can spare.
If you’re asking which Linux is closest to macOS, many Mac switchers start with Ubuntu’s default GNOME desktop, which a dock extension and a theme can bring closer to the look you know.
Weighing the pros and cons
Each route trades one thing for another. Think of a student who needs Linux for a course. Running Ubuntu in VirtualBox lets them leave their everyday Mac untouched. Here’s how the options compare:
- VirtualBox: isolated from macOS, so a broken install stays contained, but it’s resource-heavy.
- Boot Camp: native performance, but you’ll need a restart to switch systems.
- Parallels: seamless integration, but it’s a paid tool.
- Docker: lightweight, but you get a container rather than a full desktop.
VirtualBox wins on safety, while Boot Camp wins on speed. Pick the one you’ll finish. You can always remove Ubuntu later to reclaim the space.
Common problems and how to fix them
A few snags come up again and again with a virtual machine (VM), and each has a clear fix.
- Insufficient system resources: a VM starved for memory or disk will crawl or stall, so close heavy apps before you start.
- Virtualization not enabled: if the VM won’t launch, check that virtualization is turned on, then retry.
- macOS permissions: grant the VM app the access it asks for in System Settings, or it can’t do its job.
- Update VirtualBox: an outdated build can cause install trouble, so update it before you start.
- Allocate sufficient resources: give the VM enough processor cores, memory, and disk up front so the installer doesn’t run out of room.
Once Ubuntu boots, remap the Cmd and Option keys so your shortcuts still feel familiar. Then theme the desktop and terminal, and set up Neovim or VS Code for your editing.
Installing Ubuntu on a Mac isn’t about finding one perfect method. It’s about matching the route to your hardware, your need for macOS, and how hands-on you want to be.
A dual-boot gives Ubuntu its own space, a virtual machine keeps things contained, and Docker offers a lighter first look. Whichever you pick, give your desktop and editor setup the same care, since that’s where Ubuntu starts to feel like home.
Pick the route that fits, and make the space yours.
References
- Virtualisointi VirtualBox-ohjelman avulla — theseus.fi (2011)
Questions
What is Ubuntu used for?
Ubuntu is a free Linux operating system used for everyday computing, software development, learning Linux, and running applications or services. On a Mac, you can use it as a separate system, in a virtual machine alongside macOS, or in a lightweight Docker container for command-line tasks.
Can you load Ubuntu on a Mac?
Yes. Ubuntu can run on a Mac, but the installation method and software version depend on whether it has an Intel processor or Apple Silicon. You can use a virtual machine or Docker on either type, while native dual-boot is an option for Intel Macs, not Apple Silicon Macs.
Is Ubuntu still good in 2026?
Yes. Ubuntu remains a widely used, actively maintained Linux distribution, and its long-term support releases receive updates over an extended support period. Choose a release and installation method compatible with your Mac's processor and needs.
Which Linux is closest to macOS?
Ubuntu with its default GNOME desktop is a common starting point for people who want a Linux desktop that can resemble macOS. A dock extension, theme, and familiar keyboard shortcuts can make it feel more familiar, though no Linux distribution is identical to macOS.
Sources
- Virtualisointi VirtualBox-ohjelman avulla, theseus.fi,


