Skip to content

Commit b854c6c

Browse files
committed
Document why we put certs in current dir
1 parent 0bc550a commit b854c6c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/norun/test_registry.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
def dind(registry, host_ip):
2020
port = get_free_port()
2121

22-
# Generate CA certs here so we can securely connect to the docker daemon
22+
# docker daemon will generate certs here, that we can then use to connect to it.
23+
# put it in current dir than in /tmp because on macos, current dir is likely to
24+
# shared with docker VM so it can be mounted, unlike /tmp
2325
cert_dir = HERE / f"tmp-certs-{secrets.token_hex(8)}"
2426
cert_dir.mkdir()
2527

0 commit comments

Comments
 (0)