From ec16a00560c6430b63eb27e16c01548cd2a02f89 Mon Sep 17 00:00:00 2001 From: Allison Larson Date: Thu, 11 May 2023 10:58:23 -0700 Subject: [PATCH] docker: sync folders before preparing nfs settings Re-order the `SyncedFolders` to occur before `PrepareNFSSettings`, ensuring that the host & machine ips are set appropriately. --- plugins/providers/docker/action.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/providers/docker/action.rb b/plugins/providers/docker/action.rb index 2705439f497..f5de581ddde 100644 --- a/plugins/providers/docker/action.rb +++ b/plugins/providers/docker/action.rb @@ -231,6 +231,7 @@ def self.action_start b2.use HostMachineSyncFolders b2.use PrepareNFSValidIds b2.use SyncedFolderCleanup + b2.use SyncedFolders b2.use PrepareNFSSettings b2.use PrepareNetworks b2.use Login @@ -248,7 +249,6 @@ def self.action_start b3.use ForwardedPorts # This action converts the `ports` param into proper network configs b3.use PrepareForwardedPortCollisionParams b3.use HandleForwardedPortCollisions - b3.use SyncedFolders b3.use Pull b3.use Create b3.use WaitForRunning @@ -268,7 +268,6 @@ def self.action_start end else # We're in a run command, so we do things a bit differently. - b2.use SyncedFolders b2.use Create end end