File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ Unreleased
20
20
(:issue: `1510 `)
21
21
- The debugger detects cycles in chained exceptions and does not time
22
22
out in that case. (:issue: `1536 `)
23
+ - When running the development server in Docker, the debugger security
24
+ pin is now unique per container.
23
25
24
26
25
27
Version 0.15.2
Original file line number Diff line number Diff line change @@ -67,6 +67,19 @@ def get_machine_id():
67
67
return rv
68
68
69
69
def _generate ():
70
+ # docker containers share the same machine id, get the
71
+ # container id instead
72
+ try :
73
+ with open ("/proc/self/cgroup" ) as f :
74
+ value = f .readline ()
75
+ except IOError :
76
+ pass
77
+ else :
78
+ value = value .strip ().partition ("/docker/" )[2 ]
79
+
80
+ if value :
81
+ return value
82
+
70
83
# Potential sources of secret information on linux. The machine-id
71
84
# is stable across boots, the boot id is not
72
85
for filename in "/etc/machine-id" , "/proc/sys/kernel/random/boot_id" :
You can’t perform that action at this time.
0 commit comments