We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
extra_hosts
secrets
docker_container
I'm trying to use docker_container resource and it has no extra_hosts, secrets attribute.
terraform { # ... } resource "docker_container" "nginx" { image = "nginx:latest" name = "nginx" # ... extra_hosts { host = "host.docker.internal" ip = "host-gateway" } extra_hosts { host = "foo" ip = "bar" } # ... }
terraform { # ... } resource "docker_secret" "postgres_password" { name = "postgres_password" data = file(local.password_file) } resource "docker_image" "postgres" { name = "postgres:latest" } resource "docker_container" "postgres" { name = "postgres" image = docker_image.postgres # ... env = [ "POSTGRES_PASSWORD=/run/secrets/postgres_password" ] secrets { id = docker_secret.postgres_password.id } # ... }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Community Note
Description
I'm trying to use
docker_container
resource and it has noextra_hosts
,secrets
attribute.New or Affected Resource(s)
Potential Terraform Configuration
The text was updated successfully, but these errors were encountered: