mirror of
https://github.com/apple/container.git
synced 2026-07-15 22:17:01 +00:00
49f1a5693f
This PR fixes #357, passing `SSH_AUTH_SOCK` env variable from current terminal to the `SandboxService` so that the container can mount the correct ssh auth socket. For that, it introduces `env` parameters to `bootstrap` RPC of both `ContainersService` and `SandboxService`. This parameter is used only for passing `SSH_AUTH_SOCK` now, but can be extended to pass more runtime env variables. This PR is a follow up PR of #1214. ## Type of Change - [X] Bug fix - [ ] New feature - [ ] Breaking change - [ ] Documentation update ## Motivation and Context Container run `--ssh` was inheriting `SSH_AUTH_SOCK` env variable from launchd, not from current terminal. ## Testing - [X] Tested locally - [ ] Added/updated tests - [ ] Added/updated docs