We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 550cdc6 commit c854452Copy full SHA for c854452
nixpacks/src/dagger/lib.ts
@@ -23,10 +23,15 @@ export const getDirectory = async (
23
};
24
25
export const docker = (version = "24.0", cached = false) => {
26
+ const buildx = dag.container().from("docker/buildx-bin").file("/buildx");
27
let ctr = dag
28
.container()
29
.from(`docker:${version}-dind`)
30
+ .withEnvVariable("DOCKER_CLI_EXPERIMENTAL", "enabled")
31
.withoutEntrypoint()
32
+ .withExec(["mkdir", "-p", "/usr/libexec/docker/cli-plugins"])
33
+ .withFile("/usr/libexec/docker/cli-plugins/docker-buildx", buildx)
34
+ .withExec(["docker", "buildx", "version"])
35
.withExposedPort(2375);
36
37
if (cached) {
0 commit comments