Skip to content

Commit

Permalink
Favor copy compose file instead of mount (#6945)
Browse files Browse the repository at this point in the history
It will enable to make docker compose with remote runtimes.
  • Loading branch information
eddumelendez committed Apr 29, 2023
1 parent 6442d27 commit 2ea0969
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ public ContainerisedDockerCompose(List<File> composeFiles, String identifier) {
final String composeFileEnvVariableValue = Joiner.on(UNIX_PATH_SEPERATOR).join(absoluteDockerComposeFiles); // we always need the UNIX path separator
logger().debug("Set env COMPOSE_FILE={}", composeFileEnvVariableValue);
addEnv(ENV_COMPOSE_FILE, composeFileEnvVariableValue);
addFileSystemBind(pwd, containerPwd, BindMode.READ_WRITE);
withCopyFileToContainer(MountableFile.forHostPath(pwd), containerPwd);

// Ensure that compose can access docker. Since the container is assumed to be running on the same machine
// as the docker daemon, just mapping the docker control socket is OK.
Expand Down

0 comments on commit 2ea0969

Please sign in to comment.