Skip to content

How to use ImageFromDockerfile.withDockerfileFromBuilder as compatible substitute image? #5104

Answered by kiview
nylund asked this question in Q&A
Discussion options

You must be logged in to vote

Can you try something along the lines of:

DockerImageName myImage = DockerImageName.parse(customImage.get())
  .asCompatibleSubstituteFor("docker.elastic.co/elasticsearch/elasticsearch");

Replies: 8 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by kiview
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies