-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes to the docker_image resource end in the Error: failed to solve with frontend dockerfile.v0: failed to read dockerfile: Error processing tar file(exit status 1): unexpected EOF #505
Comments
I have the same problem |
I am running on Apple Silicon and I cannot reproducce this issue. Can you run |
Hey Junkern, I encountered this same issue on Windows 10 Pro. |
Same issue. Seems Windows specific. It will work the first time with zero state, but not after. If I jump into my linux distro in WSL and run the terraform apply on the same directory I have no issues. Here is the only thing that stood out in the Windows side of the logging with some errors on locked state files that I don't see in the Linux logs.
|
@dustinbrooks, you may try forcing |
Confirmed Windows only, regardless of the EOL markers of the Dockerfile. Same LF ended file works on WSL/Linux, fails with this error in Windows. |
Community Note
Terraform (and docker Provider) Version
Terraform v1.3.7
on windows_386
Docker Desktop Version
docker version
Client:
Cloud integration: v1.0.29
Version: 20.10.21
API version: 1.41
Go version: go1.18.7
Git commit: baeda1f
Built: Tue Oct 25 18:08:16 2022
OS/Arch: windows/amd64
Context: default
Experimental: true
Server: Docker Desktop 4.15.0 (93002)
Engine:
Version: 20.10.21
API version: 1.41 (minimum version 1.12)
Go version: go1.18.7
Git commit: 3056208
Built: Tue Oct 25 18:00:19 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.10
GitCommit: 770bd0108c32f3fb5c73ae1264f7e503fe7b2661
runc:
Version: 1.1.4
GitCommit: v1.1.4-0-g5fd4c4d
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Affected Resource(s)
docker_image
Debug Output
docker_image.zoo: Creating...
╷
│ Error: failed to solve with frontend dockerfile.v0: failed to read dockerfile: Error processing tar file(exit status 1): unexpected EOF
│
│
│
│ with docker_image.zoo,
│ on main.tf line 14, in resource "docker_image" "zoo":
│ 14: resource "docker_image" "zoo" {
│
╵
Expected Behaviour
No Error and rebuild docker image.
Actual Behaviour
A change to
main.tf
triggers a Docker image build and ends with an error message.Steps to Reproduce
Dockerfile
terraform main.tf
terraform init
terraform apply
main.tf
e.g.docker_image.build.label.author
terraform apply
All subsequent
terraform apply
will give the same result.By deleting the
terraform.tfstate
file, you can start over with the same result.Important Factoids
References
nothing really comparable found on the net
The text was updated successfully, but these errors were encountered: