Skip to content

[Bug]: Image and content stores don't honor custom app-data path. #1084

@jglogan

Description

@jglogan

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

While running tests, I noticed that if I removed all data and ran a fresh integration test with a custom app-data path, the image and content store data still went to the default path ~/Library/Application Support/com.apple/container.

Current behavior

container system stop
sudo uninstall-container.sh -d
rm -rf "${PWD}/test-data"
mkdir "${PWD}/test-data"
make APP_ROOT="${PWD}/test-data" all test integration
% ls "${PWD}/test-data" ~/Library/Application\ Support/com.apple.container
 % ls "${PWD}/test-data" ~/Library/Application\ Support/com.apple.container
.../Library/Application Support/com.apple.container:
content		snapshots	state.json

.../container/test-data:
apiserver	builder		containers	kernels		networks	plugin-state	volumes

Expected behavior

Imageref store state.json, content store content, and snapshot store snapshots should be in test-data. The default application data directory should not exist.

Environment

- OS: 26
- Xcode: 26
- Container: main

Relevant log output

N/A

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions