Closed as not planned
Description
Issue
I set up a coder deployment and wanted to use a remote docker daemon for some quick testing. First thing came to mind is to use the docker starter template and then edit the docker host to my remote host ip.
Expectation
Template should import successfully and then let me edit the files and make required changes. Then build and publish.
Actual Behavior
Initializing the backend...
Initializing provider plugins...
- Finding coder/coder versions matching "~> 0.6.17"...
- Finding kreuzwerker/docker versions matching "~> 3.0.1"...
- Installing coder/coder v0.6.21...
- Installed coder/coder v0.6.21 (signed by a HashiCorp partner, key ID 93C75807601AA0EC)
- Installing kreuzwerker/docker v3.0.2...
- Installed kreuzwerker/docker v3.0.2 (self-signed, key ID BD080C4571C6104C)
Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://www.terraform.io/docs/cli/plugins/signing.html
Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
Terraform 1.3.4
data.coder_provisioner.me: Refreshing...
data.coder_workspace.me: Refreshing...
data.coder_workspace.me: Refresh complete after 0s [id=93691226-0442-4c91-8f13-9e7e10a59aee]
data.coder_provisioner.me: Refresh complete after 0s [id=0fed0777-b0b8-4b3a-88c6-e901f2575d73]
Error: Error pinging Docker server: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
on main.tf line 21, in provider "docker":
21: provider "docker" {
Suggestion
Do not run terraform plan while importing a starter template and let the user edit the files first. Wait until the user press Build button.
May this can be made default behaviour after #5573 GA.
Metadata
Metadata
Assignees
Labels
No labels