container

(★ 49,181)

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.

File Explorer

  • .gitignore
  • .spi.yml
  • .swift-format
  • .swift-format-nolint
  • BUILDING.md
  • CONTRIBUTING.md
  • LICENSE
  • licenserc.toml
  • MAINTAINERS.txt
  • Makefile
  • NOTICE.md
  • Package.resolved
  • Package.swift
  • Protobuf.Makefile
  • README.md
  • SECURITY.md

# Installation Guide

swift
Prerequisites

Setup Steps

container system start

Start the container system service.

container run --rm alpine echo hello

Run your first container to test functionality.

Key Commands

container system start

Start the container background system service.

container run --rm alpine echo hello

Create and run a new container from a specified image.

container system stop

Stop the running container system service.

Administrator privileges may be required, and the system must be stopped before upgrading.

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Release Timeline

Actively Maintained

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

hello

View Details ▼

Print "Hello, world!", "hello, world", or a customizable text.

hello

Print "Hello, world!":

hello {{[-t|--traditional]}}

Print "hello, world", the traditional type:

hello {{[-g|--greeting]}} "{{greeting_text}}"

Print a text message:

🔍

alpine

View Details ▼

An email client and Usenet newsgroup program with a pico/nano-inspired interface.
Supports most modern email services through IMAP.

alpine

Open alpine normally:

alpine {{[email protected]}}

Open alpine directly to the message composition screen to send an email to a given email address:

<q><y>

Quit alpine:

🔍

container

View Details ▼

Create and run Linux containers as lightweight virtual machines on macOS.

container system start

Start the container services (required before running containers):

container run --rm {{[-it|--interactive --tty]}} {{image}} {{sh}}

Run a container from an image interactively and remove it after it exits:

container run {{[-d|--detach]}} --name {{container_name}} {{[-p|--publish]}} {{8080:80}} {{image}}

Run a container in the background with a name and a published port:

// repository documentation