diff --git a/distribution/docker/build.gradle b/distribution/docker/build.gradle index 64bd4c75cc2ef..2e797b3893a79 100644 --- a/distribution/docker/build.gradle +++ b/distribution/docker/build.gradle @@ -305,7 +305,7 @@ void addBuildDockerImageTask(Architecture architecture, DockerBase base) { baseImages = [baseImage] buildArgs = buildArgsMap } else if (base == DockerBase.CENTOS) { - baseImages = ['alpine:latest', base.image] + baseImages = ['alpine:3.13', base.image] } else { baseImages = [base.image] } diff --git a/qa/os/src/test/java/org/elasticsearch/packaging/util/Docker.java b/qa/os/src/test/java/org/elasticsearch/packaging/util/Docker.java index f34310724ac53..d9b6eda6001cb 100644 --- a/qa/os/src/test/java/org/elasticsearch/packaging/util/Docker.java +++ b/qa/os/src/test/java/org/elasticsearch/packaging/util/Docker.java @@ -299,7 +299,7 @@ private static void executePrivilegeEscalatedShellCmd(String shellCmd, Path loca args.add("--volume \"" + localPath.getParent() + ":" + containerPath.getParent() + "\""); // Use a lightweight musl libc based small image - args.add("alpine"); + args.add("alpine:3.13"); // And run inline commands via the POSIX shell args.add("/bin/sh -c \"" + shellCmd + "\"");