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:
Martin Jonas 2018-10-10 17:24:55 +02:00 committed by Brian Cain
parent 2ce62cad65
commit 238338d803
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
1 changed files with 1 additions and 2 deletions

View File

@ -109,8 +109,7 @@ module VagrantPlugins
# If we specify exact then we know what we're doing
if !data[:docker__exact]
data[:guestpath] =
"/var/lib/docker/docker_#{Time.now.to_i}_#{rand(100000)}"
data[:guestpath] = "/var/lib/docker/docker_#{id}"
end
# Add this synced folder onto the new config if we haven't