You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.
An error applying Terraform config when it tried to use the Docker provider.
Steps to Reproduce
Start Docker Desktop in Windows, wait til it's ready
Ensure the Docker daemon is reachable from within WSL 2 (ex. run docker ps)
Add Docker provider to config
Run terraform apply
Important Factoids
I ensured I had Docker set up to be useable from within WSL 2 first. I was able to run commands like docker ps:
> docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
But then, when running terraform apply, it displayed that error, saying it couldn't reach the daemon. I tried using the port 2376 instead of 2375 in the Terraform config, but that didn't work. I also tried enabling this option in Docker Desktop in Windows:
But this also made no difference (even when using port 2375 in the Terraform config).
I'm using Ubuntu 20.10 in WSL 2.
References
When troubleshooting, I tried the steps in the issue #210, but it didn't help.
The text was updated successfully, but these errors were encountered:
Terraform Version
Terraform v0.12.29 (using old version intentionally because I'm following a tutorial that references particular modules that don't yet support 0.13)
Affected Resource(s)
n/a
Terraform Configuration Files
versions.tf
:providers.tf
:variables.tf
:terraform.tfvars
:outputs.tf
:main.tf
:Debug Output
Please provider a link to a GitHub Gist containing the complete debug output: https://gist.github.com/mattwelke/ce34d58c1281d49930f81caaa257800e
Panic Output
n/a
Expected Behavior
A docker container being created.
Actual Behavior
An error applying Terraform config when it tried to use the Docker provider.
Steps to Reproduce
docker ps
)terraform apply
Important Factoids
I ensured I had Docker set up to be useable from within WSL 2 first. I was able to run commands like
docker ps
:But then, when running
terraform apply
, it displayed that error, saying it couldn't reach the daemon. I tried using the port2376
instead of2375
in the Terraform config, but that didn't work. I also tried enabling this option in Docker Desktop in Windows:But this also made no difference (even when using port
2375
in the Terraform config).I'm using Ubuntu 20.10 in WSL 2.
References
When troubleshooting, I tried the steps in the issue #210, but it didn't help.
The text was updated successfully, but these errors were encountered: