apple / apple/container

[Request]: container image load fails to read from file descriptor

Open
#1,429 0 comments 0 reactions 1 assignee Claimed by @jglogan View on GitHub
Dominant language
Swift
Stars
49.9k
Forks
1.8k
Avg merge
1d 20h
Merged PRs (30d)
22

Description

### Feature or enhancement request details

https://github.com/bazel-contrib/rules_oci allow to specify a custom loader but `container` is unable to run it

loader:

```bash
#!/bin/bash

container image load --input "$3" # $3 /dev/fd/63
```

result:

```
Error: Error Domain=NSCocoaErrorDomain Code=512 "The file “63” couldn’t be saved in the folder “fd”." UserInfo={NSFilePath=/dev/fd/63, NSUnderlyingError=0x751840270 {Error Domain=NSPOSIXErrorDomain Code=9 "Bad file descriptor"}}
tar: Write error
```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.