Deterministic host VM synced folder location for Docker provider to prevent broken sync after host VM shutdown
Fix for #10282
This commit is contained in:
parent
2ce62cad65
commit
238338d803
|
@ -109,8 +109,7 @@ module VagrantPlugins
|
||||||
|
|
||||||
# If we specify exact then we know what we're doing
|
# If we specify exact then we know what we're doing
|
||||||
if !data[:docker__exact]
|
if !data[:docker__exact]
|
||||||
data[:guestpath] =
|
data[:guestpath] = "/var/lib/docker/docker_#{id}"
|
||||||
"/var/lib/docker/docker_#{Time.now.to_i}_#{rand(100000)}"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Add this synced folder onto the new config if we haven't
|
# Add this synced folder onto the new config if we haven't
|
||||||
|
|
Loading…
Reference in New Issue