Open teroelonen opened 4 years ago
Verified times when keys are "lost":
Rationale:
Containers have rule restart: unless-stopped
which means they get restarted in case of OS or Docker gets rebooted.
But as adding keys is not part of Docker itself, that cannot be automised to happen on reboots.
Possible solution:
Change adding keys to manual operation ALWAYS. It might be security related decision as now we add default keys without asking on up'ping.
There might be other occasions ofc when the whole SSH_AGENT stuff gets somehow disrupted.
plist could help on mac https://github.com/druidfi/stonehenge/issues/61
To solve this temporarily do the following:
make addkey
docker-compose up -d --force
ssh-add -L
You should now have your keys in the container. If not - pray to god.