mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2025-12-25 17:19:34 -05:00
* fix(service): remove image name suppress function * feat: add docker image data-source * docs(service): add example for iamge datasource usage * fix: image repo digest with tag determination * fix: always return a repoDigest * fix(image): deprecation notice for latest attribute * fix(ci): explicitly go get tfplugindocs * fix(ci): remove gocenter.io proxy
15 lines
356 B
HCL
15 lines
356 B
HCL
provider "docker" {
|
|
registry_auth {
|
|
address = "127.0.0.1:15000"
|
|
}
|
|
}
|
|
|
|
resource "docker_service" "foo" {
|
|
name = "tftest-service-basic"
|
|
task_spec {
|
|
container_spec {
|
|
image = "127.0.0.1:15000/tftest-service:v1@sha256:2ca4c7a50df3515ea96106caab374759879830f6e4d6b400cee064e2e8db08c0"
|
|
stop_grace_period = "10s"
|
|
}
|
|
}
|
|
}
|