diff --git a/src/main/java/io/fabric8/maven/docker/access/ContainerCreateConfig.java b/src/main/java/io/fabric8/maven/docker/access/ContainerCreateConfig.java index bc4f06135..6c6586201 100644 --- a/src/main/java/io/fabric8/maven/docker/access/ContainerCreateConfig.java +++ b/src/main/java/io/fabric8/maven/docker/access/ContainerCreateConfig.java @@ -139,7 +139,7 @@ private String extractContainerPath(String volume) { if (volume.contains(":")) { String[] parts = volume.split(":"); if (parts.length > 1) { - return parts[1]; + return parts[parts.length - 1]; } } return volume;