Contributions to Container and Containerization are welcomed and encouraged.
- How you can help
- Discussions, Issues, and Pull Requests
- Filing effective bug reports
- New to open source?
- AI contribution guidelines
- Code of conduct
We would love your contributions in the form of:
🐛 Bug fixes
⚡️ Performance improvements
✨ API additions or enhancements
📝 Documentation
🧑💻 Project advocacy: blogs, conference talks, and more
Anything else that could enhance the project!
Use GitHub Discussions for early, open-ended, or conceptual conversations — for example, to check whether an idea is directionally aligned with the goals of the project before proposing it as concrete work. Discussions for both container and containerization take place in the container repository.
Once an idea is well-defined enough to act on, open an issue for it and link back to the discussion.
To file a bug or feature request, use GitHub issues in the project that owns the behavior:
🚧 For unexpected behavior or usability limitations, detailed instructions on how to reproduce the issue are appreciated. This will greatly help the priority setting and speed at which maintainers can get to your issue. See Filing effective bug reports for what to include.
We ask that you agree on an approach in an issue before writing code. This lets discussion happen early, saves you from reworking a pull request, and increases the chance that your contribution is accepted.
- Start from a clear, actionable issue. If one doesn't exist, create it. It should describe a specific problem or change that someone could pick up and complete — not an open-ended idea (use Discussions for those).
- Indicate that you want to work on it. Leave a comment on the issue so others know it's being worked on.
- Share your plan. Describe how you intend to make the change — for example, the approach you'll take, the areas of the code involved, any API or behavior changes, and how you'll test it.
- Wait for a maintainer to acknowledge your plan before you start writing code, if the change is non-trivial.
For non-trivial changes, such as new features, API changes, or substantial bug fixes, these steps are required. For small changes, such as typo fixes, documentation updates, or obvious one-line bug fixes, you can open a pull request directly, but we still encourage you to link it to an issue. Pull requests that skip these steps may be deprioritized.
We require all commits be signed with any of GitHub's supported methods, such as GPG or SSH. Information on how to set this up can be found on GitHub's docs.
Please give the team a few days to review but it's ok to check in on occasion. We appreciate your contribution!
Important
If you plan to make substantial changes or add new features, agree on an approach in an issue before you open a pull request. See Working on an issue for details.
We use a "squash and merge" strategy to keep our main branch history clean and easy to follow. When your pull request
is merged, all of your commits will be combined into a single commit.
With the "squash and merge" strategy, the title and body of your pull request is extremely important. It will become the commit message for the squashed commit. Think of it as the single, definitive description of your contribution.
Before merging, we'll review the pull request title and body to ensure it:
- Clearly and concisely describes the changes.
- Uses the imperative mood (for example, "Add feature," "Fix bug").
- Provides enough context for future developers to understand the purpose of the change.
The pull request description should be concise and accurately describe the what and why of your changes.
We do not currently accept contributions to add editor specific additions to the root .gitignore. We urge contributors to make a global .gitignore file with their rulesets they may want to add instead. A global .gitignore file can be set like so:
git config --global core.excludesfile ~/.gitignoreMake sure your contributions are consistent with the rest of the project's formatting. You can do this using our Makefile:
make fmtIf you submit a contribution that adds a new file, please add the license header. You can do this using our Makefile:
make update-licensesThis section helps you collect the information maintainers need to reproduce and fix an issue. Complete and accurate reports get resolved faster.
💡 Example of a good bug report: apple/container#1094 demonstrates many of the practices described below.
Clear reproduction steps are the most important part of a bug report.
- Starting state: What was your setup before the issue?
- Fresh installation or existing setup?
- Any specific configuration files?
- Previous commands that led to this state?
- Has your machine recently been restarted?
- Exact commands or code: Copy-paste the exact commands you ran, including all flags and arguments. If you're using the Containerization packages directly, include a minimal code snippet that reproduces the problem. Use code blocks for clarity.
- Reproducibility: Does it happen every time?
- Always reproducible
- Happens sometimes (describe the conditions)
- Only happened once
For example:
1. Create a new container: `container create --name test-app ubuntu:latest`
2. Start the container: `container start test-app`
3. The container fails during bootstrap with the error:
"failed to bootstrap container test-app"
4. The container exits with code 1
Describe what currently happens, what you expected to happen instead, and include any relevant log output.
- Exact error messages (copy-paste, don't paraphrase)
- Exit codes or status indicators
- Performance issues (slowness, hangs, crashes)
- Unexpected outputs or results
- The output or result you anticipated
- A reference to documentation, if available
- How it behaved in previous versions, if applicable
- Error messages or stack traces
- Warning messages related to your issue
- Output from failed commands
See Log information below for how to collect logs for each project.
Your macOS version:
sw_versYour Xcode version:
xcodebuild -versionYour container version:
container --versioncontainer CLI version 0.10.0-27-g9fd15f0 (build: debug, commit: 9fd15f0)
Also mention whether you installed from a release package or built from source.
- Containerization version: The release tag or commit you're using. If you depend on the package, this is the
containerizationentry in yourPackage.resolved. If you're working from a checkout, rungit rev-parse HEAD. - Swift version: The output of
swift --version. - Kernel: Which guest kernel you're using — for example, the default kernel from
make fetch-default-kernel, a kernel built withmake -C kernel, or another kernel. - Platform: Whether you're running on macOS (Virtualization.framework) or Linux (cloud-hypervisor). On Linux, include your distribution and the output of
uname -a.
Run the failing command with debug output:
container --debug <command>Get the logs from a container:
container logs <container-id>For system-level issues, get the logs from the container system services:
container system logs- Host logs: The Containerization packages log through swift-log.
- Integration test failures: Include the full output of
make integration.
- What were you trying to accomplish?
- What changed recently in your setup?
- Does the issue still occur on the
mainbranch?
- Full error messages (not just the last line)
- Stack traces, where relevant
- Related warning messages
- Does it happen with a newly created container?
- Does it happen after a fresh install or a clean build?
- Have your network settings changed?
- Have your Xcode or macOS versions changed?
Take a look at the good first issue label in the containerization or container project.
Before you start working on an issue:
- Check the comments, assignees, and any references to pull requests — make sure nobody else is actively working on it, or awaiting help or review.
- If someone is assigned to the issue or volunteered to work on it, and there are no signs of progress or activity over at least the past month, don't hesitate to check in with them
- Leave a comment that you want to work on it, along with your plan. See Working on an issue.
Don't be afraid to ask for help! When asking for help, provide as much information as possible, while highlighting anything you think may be important. Refer to the MAINTAINERS.txt file for the appropriate people to ping.
It's possible that you ask someone a question in an issue/pull request and you don't get a response as quickly as you'd like. If you don't get a response within a week, it's okay to politely ping them using an @ mention. If you don't get a response for 2-3 weeks in a row, please ping someone else.
Sometimes an issue ends up bigger, harder, or more time-consuming than expected — and that’s completely fine. Be sure to comment on the issue saying you’re stepping away, so that someone else is able to pick it up.
We welcome thoughtful use of AI tools in your contributions to Container and Containerization. We ask that you adhere to these rules in order to preserve the project's integrity, clarity, and quality, and to respect maintainer bandwidth:
- You should be able to explain and justify every line of code or documentation that was generated or assisted by AI. Your submission should reflect your own understanding and intent.
- Use AI to augment, not totally replace, your reasoning or familiarity, especially for non-trivial parts of the system.
- Avoid dumping AI-generated walls of text that you cannot explain. Low-effort, unexplained submissions will be deprioritized to protect maintainer bandwidth.
AI tools should be used to enhance, not replace the human elements that make OSS special: learning, collaboration, and community growth.
To clarify what is expected of our contributors and community members, the Containerization team has adopted the code of conduct defined by the Contributor Covenant. This document is used across many open source communities and articulates our values well. For more detail, please read the Code of Conduct.