diff --git a/src/main/java/io/fabric8/maven/docker/access/hc/DockerAccessWithHcClient.java b/src/main/java/io/fabric8/maven/docker/access/hc/DockerAccessWithHcClient.java index 319343fbc..f92e8e21a 100644 --- a/src/main/java/io/fabric8/maven/docker/access/hc/DockerAccessWithHcClient.java +++ b/src/main/java/io/fabric8/maven/docker/access/hc/DockerAccessWithHcClient.java @@ -476,7 +476,7 @@ public String getImageId(String name) throws DockerAccessException { return null; } JsonObject imageDetails = JsonFactory.newJsonObject(response.getBody()); - return imageDetails.get("Id").getAsString().substring(0, 12); + return imageDetails.get("Id").getAsString(); } @Override