terraform-provider-docker icon indicating copy to clipboard operation
terraform-provider-docker copied to clipboard

Can not build the docker image using git url

Open aston-r opened this issue 3 years ago • 1 comments

Hi

We can build the docker images using the command: docker build https://github.com/derailed/k9s.git

I tried to do using this provider, but faced the issue:

resource "docker_image" "this" {
  name = "k9s"

  build {
    path = "https://github.com/derailed/k9s.git"
    tag  = ["k9s:dev"]
  }
}
Error: failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount679469684/Dockerfile: no such file or directory

It looks like this configuration is not supported yet(

aston-r avatar Oct 03 '22 21:10 aston-r

Thanks for the report! You are right, we have not implemented support for git urls yet.

Junkern avatar Oct 12 '22 13:10 Junkern