[Bug]: failed to verify certificate with self signed certs
- Dominant language
- Swift
- Stars
- 49.9k
- Forks
- 1.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 22
Description
### I have done the following
- [x] I have searched the existing issues
- [ ] If possible, I've reproduced the issue using the 'main' branch of this project
### Steps to reproduce
- Docker registry that has self signed cert
### Current behavior
```
❯ container build -t test:test . --arch amd64
[+] Building 9.1s (4/13)
=> [resolver] fetching image...internal.cr/internal/base 0.0s
=> [internal] load .dockerignore 0.4s
=> => transferring context: 2B 0.4s
=> ERROR [linux/amd64 1/10] FROM internal.cr/internal/base:latest@sha256:cbc2d785b823ee730117c806ef73da8d6ce2aa774070e37221146041d66ee1bb 0.1s
=> => resolve internal.cr/internal/base:latest@sha256:cbc2d785b823ee730117c806ef73da8d6ce2aa774070e37221146041d66ee1bb 0.1s
=> CANCELED [internal] load build context 0.1s
=> => transferring context: 0.1s
------
> [linux/amd64 1/10] FROM internal.cr/internal/base:latest@sha256:cbc2d785b823ee730117c806ef73da8d6ce2aa774070e37221146041d66ee1bb:
------
Error: unknown (2): failed to solve: failed to load cache key: failed to do request: Head "https://internal.cr/v2/internal/base/manifests/sha256:cbc2d785b823ee730117c806ef73da8d6ce2aa774070e37221146041d66ee1bb": tls: failed to verify certificate: x509: certificate signed by unknown authority
```
### Expected behavior
Use CA thats trusted by Keychain
### Environment
```markdown
- OS: 15.5 (24F74)
- Xcode: 15.5
- Container: container CLI version 0.2.0 (build: release, commit: 3b5c253)
```
### Relevant log output
```shell
```
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Contributor guide
Assessment
This issue has not been assessed yet.