apple/container

▲ 49 stars today★ 49,977⑂ 1,790

A tool for creating and running Linux containers using lightweight virtual machines on a Mac. It is written in Swift, and optimized for Apple silicon.

About apple/container

apple/container is an open-source project on GitHub, mainly written in Swift. A tool for creating and running Linux containers using lightweight virtual machines on a Mac. It is written in Swift, and optimized for Apple silicon. It currently holds 49,977 stars and 1,790 forks with 537 open issues, and was last pushed on 2026-09-15 (repository created 2025-05-30).

Project Overview

Git Homed tracks it on the Today's Trending board, currently at rank #86 with 49 new stars today.

GitHub Repository Details

Repository apple/container · default branch main · size 10044 KB · watchers 218 · source: GitHub REST API and repository README

README

https://github.com/apple/container/blob/HEAD/Containerization logo  container

container is a tool that you can use to create and run Linux containers as lightweight virtual machines on your Mac. It's written in Swift, and optimized for Apple silicon.

The tool consumes and produces OCI-compatible container images, so you can pull and run images from any standard container registry. You can push images that you build to those registries as well, and run the images in any other OCI-compatible application.

container uses the Containerization Swift package for low-level container, image, and process management.

introductory movie showing some basic commands

Get started

Requirements

You need a Mac with Apple silicon to run container. To build it, see the BUILDING document.

container is supported on macOS 26, since it takes advantage of new features and enhancements to virtualization and networking in this release. We do not support older versions of macOS and the container maintainers typically will not address issues that cannot be reproduced on macOS 26.

Initial install

Download the latest signed installer package for container from the GitHub release page.

To install the tool, double-click the package file and follow the instructions. Enter your administrator password when prompted, to give the installer permission to place the installed files under /usr/local.

Start the system service with:

container system start

Run your first container

container run --rm alpine echo hello

This pulls the alpine image, runs it in a lightweight Linux VM, prints hello, and removes the container when it exits. See the tutorial for a fuller walkthrough that builds and publishes an image of your own.

Upgrade or downgrade

For both upgrading and downgrading, you can manually download and install the signed installer package by following the steps from initial install or use the update-container.sh script (installed to /usr/local/bin).

If you're upgrading or downgrading, you must stop your existing container:

container system stop

To upgrade to the latest release, simply run the command below:

/usr/local/bin/update-container.sh

To downgrade, you must uninstall your existing container (the -k flag keeps your user data, while -d removes it):

/usr/local/bin/uninstall-container.sh -k
/usr/local/bin/update-container.sh -v 0.3.0

Start the system service with:

container system start

Uninstall

Use the uninstall-container.sh script (installed to /usr/local/bin) to remove container from your system. To remove your user data along with the tool, run:

/usr/local/bin/uninstall-container.sh -d

To retain your user data so that it is available should you reinstall later, run:

/usr/local/bin/uninstall-container.sh -k

Next steps

Contributing

Contributions to container are welcome and encouraged. Please see our main contributing guide for more information.

Project Status

The container project is under active development. Its release versions are product versions, not semantic versions.

The container CLI compatibility generally preserves backward compatibility within a major release (not breaking existing scripts), however, there may be the odd case where breaking compatibility may be necessary. Note: Features marked experimental (for example, the k8s subcommand) may change and do not guarantee backward compatibility.

The container-apiserver XPC API compatibility preserves forward and backward compatibility within a major version. Other non-public XPC helpers do not guarantee CLI or API compatibility across different versions.

The container application data provides forward compatibility only, guaranteed within one major version. Upgrading to a newer major version may require a specific upgrade path.

GitHub Stars & Activity

49,977Stars
1,790Forks
537Open issues
SwiftLanguage

GitHub Popularity

GitHub stars49,977
Forks1,790
Open issues537
Primary languageSwift
LicenseApache-2.0
Stars gained today49
Created2025-05-30
Last pushed2026-09-15

Trending History

Daily boardrank #86 · ▲ 49 stars

Related GitHub Projects

1

exelban / stats

Swift★ 41,852⑂ 1,526▲ 42 stars
2

manaflow-ai / cmux

Swift★ 27,150⑂ 2,359▲ 43 stars
3

dwarvesf / hidden

Swift★ 14,786⑂ 486▲ 53 stars
4

Lakr233 / vphone-cli

Swift★ 13,146⑂ 1,575▲ 907 stars
5

abue-ammar / tinycast

Swift★ 5,212⑂ 242▲ 1,076 stars
6

peetzweg / opendisplay

Swift★ 4,311⑂ 289▲ 461 stars
7

Homebrew / BrewUI

Swift★ 1,706⑂ 45▲ 662 stars
8

obra / superpowers

Shell★ 287,449⑂ 25,707▲ 522 stars

More Trending Repositories