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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants
Converted from issue

This discussion was converted from issue #5103 on February 21, 2022 14:20.