Document why we put certs in current dir

pull/1421/head
YuviPanda 2025-02-28 13:15:57 -08:00
rodzic 0bc550a494
commit b854c6c30d
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -19,7 +19,9 @@ HERE = Path(__file__).parent
def dind(registry, host_ip): def dind(registry, host_ip):
port = get_free_port() port = get_free_port()
# Generate CA certs here so we can securely connect to the docker daemon # docker daemon will generate certs here, that we can then use to connect to it.
# put it in current dir than in /tmp because on macos, current dir is likely to
# shared with docker VM so it can be mounted, unlike /tmp
cert_dir = HERE / f"tmp-certs-{secrets.token_hex(8)}" cert_dir = HERE / f"tmp-certs-{secrets.token_hex(8)}"
cert_dir.mkdir() cert_dir.mkdir()