You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 7, 2026. It is now read-only.
Mount the host's ~/.ssh directory into the container as a read-only
volume so users can run git operations (clone, fetch, pull, push)
entirely inside the container without switching to the host.
Proposed Change
Add to _dev_container() in .zshrc:
-v "$HOME/.ssh":/home/dev/.ssh:ro
Considerations
Mount as :ro to protect private keys from accidental modification.
The container's SSH config IdentityFile paths must match the mount
point (e.g., /home/dev/.ssh/id_mike_macpro_gh).
May need known_hosts copied or mounted as well.
The container user (dev) must have read access to the mounted files
(UID/GID mapping via entrypoint already handles this).
Motivation
Enables a single-terminal workflow: edit with vim, build, test, and
commit/push entirely inside the container. Currently, git operations
require switching to the host terminal.
Summary
Mount the host's
~/.sshdirectory into the container as a read-onlyvolume so users can run git operations (clone, fetch, pull, push)
entirely inside the container without switching to the host.
Proposed Change
Add to
_dev_container()in.zshrc:-v "$HOME/.ssh":/home/dev/.ssh:roConsiderations
:roto protect private keys from accidental modification.IdentityFilepaths must match the mountpoint (e.g.,
/home/dev/.ssh/id_mike_macpro_gh).known_hostscopied or mounted as well.dev) must have read access to the mounted files(UID/GID mapping via entrypoint already handles this).
Motivation
Enables a single-terminal workflow: edit with vim, build, test, and
commit/push entirely inside the container. Currently, git operations
require switching to the host terminal.