compute/docker.md
... ...
@@ -21,6 +21,14 @@ export LD_PRELOAD=libuid_wrapper.so UID_WRAPPER=1 UID_WRAPPER_ROOT=1
21 21
/app/do-ssh-stuff.py
22 22
```
23 23
Note that this doesn't _change_ your uid, it just makes ssh look up usernames and homedirs for root instead of the running uid.
24
+
25
+## git
26
+If you're pushing/pulling from ssh urls, use the ssh trick above and add this to the entrypoint/cmd wrapper script as well so ssh doesn't moan about host keys:
27
+```
28
+git config --global core.sshCommand 'ssh -o StrictHostKeyChecking=no'
29
+```
30
+If you're _really_ worried about MITM attacks, add the host keys to $HOME/.ssh/known_hosts in your Dockerfile instead.
31
+
24 32
# Debug
25 33
## Processes
26 34
Find docker processes from system shell