Skip to content

Commit ec16a00

Browse files
committed
docker: sync folders before preparing nfs settings
Re-order the `SyncedFolders` to occur before `PrepareNFSSettings`, ensuring that the host & machine ips are set appropriately.
1 parent b6a9654 commit ec16a00

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/providers/docker/action.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ def self.action_start
231231
b2.use HostMachineSyncFolders
232232
b2.use PrepareNFSValidIds
233233
b2.use SyncedFolderCleanup
234+
b2.use SyncedFolders
234235
b2.use PrepareNFSSettings
235236
b2.use PrepareNetworks
236237
b2.use Login
@@ -248,7 +249,6 @@ def self.action_start
248249
b3.use ForwardedPorts # This action converts the `ports` param into proper network configs
249250
b3.use PrepareForwardedPortCollisionParams
250251
b3.use HandleForwardedPortCollisions
251-
b3.use SyncedFolders
252252
b3.use Pull
253253
b3.use Create
254254
b3.use WaitForRunning
@@ -268,7 +268,6 @@ def self.action_start
268268
end
269269
else
270270
# We're in a run command, so we do things a bit differently.
271-
b2.use SyncedFolders
272271
b2.use Create
273272
end
274273
end

0 commit comments

Comments
 (0)