Skip to content

Add Apple container environment identifier#1779

Open
culpen90 wants to merge 1 commit into
apple:mainfrom
culpen90:changes/apple-container-env
Open

Add Apple container environment identifier#1779
culpen90 wants to merge 1 commit into
apple:mainfrom
culpen90:changes/apple-container-env

Conversation

@culpen90

Copy link
Copy Markdown

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Fixes #140.

This adds a default container=apple environment variable to processes launched by the Linux runtime so applications have a reliable Apple container detection signal. The runtime preserves image or command-provided container= values.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs
swift test --filter ContainerEnvironmentTests

@culpen90 culpen90 marked this pull request as ready for review June 21, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detecting Apple’s Container Environment

1 participant