Chisle
코딩 에이전트 플러그인, 20개 실시간 작업에서 기본 모델 52% 활용, 간결한 페르소나와 출력 압축 제공
Terraform용 Docker 제공자
Terraform Docker provider
개발 도구GitHub @kreuzwerker직접 설치운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
저장소 정보는 아직 수집하지 않았습니다.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
메이커가 쓴 소개는 위의 한 줄이 전부입니다. 더 자세한 내용은 저장소 README에서 읽을 수 있습니다. 저장소 README ↗
README 전체를 불러오는 중입니다.
README 전문 보기 ↗Sponsored by Coder
This provider covers more than basic Docker images and containers. With Terraform, you can manage:
docker_composedocker_image, docker_registry_image, and docker_tagdocker_buildx_builderdocker_servicedocker_container, docker_network, and docker_volumedocker_config, docker_secret, and docker_plugindocker_exec, docker_image_import, docker_image_load, docker_image_save, docker_container_export and docker_system_prune,Available data sources include images, image tags and manifests, containers, networks, plugins, and container logs. See the full provider documentation for the complete resource and data source list.
The documentation for the provider is available on the Terraform Registry.
You need at least Terraform 1.1.5 to use this provider.
Migration guides:
v3.x to v4.x? Please read the V3 - V4 migration guidev2.x to v3.x? Please read the V2 - V3 migration guideTake a look at the examples in the documentation of the registry or use the following example:
# Set the required provider and versions
terraform {
required_providers {
# We recommend pinning to the specific version of the Docker Provider you're using
# since new versions are released frequently
docker = {
source = "kreuzwerker/docker"
# or if you want to pull from opentfu
source = "registry.opentofu.org/kreuzwerker/docker"
version = "4.7.0"
}
}
}
# Configure the docker provider
provider "docker" {
}
# Create a docker image resource
# -> docker pull nginx:latest
resource "docker_image" "nginx" {
name = "nginx:latest"
keep_locally = true
}
# Create a docker container resource
# -> same as 'docker run --name nginx -p8080:80 -d nginx:latest'
resource "docker_container" "nginx" {
name = "nginx"
image = docker_image.nginx.image_id
ports {
external = 8080
internal = 80
}
}
# Or create a service resource
# -> same as 'docker service create -d -p 8081:80 --name nginx-service --replicas 2 nginx:latest'
resource "docker_service" "nginx_service" {
name = "nginx-service"
task_spec {
container_spec {
image = docker_image.nginx.repo_digest
}
}
mode {
replicated {
replicas = 2
}
}
endpoint_spec {
ports {
published_port = 8081
target_port = 80
}
}
}
Go 1.18.x (to build the provider plugin)
$ git clone [email protected]:kreuzwerker/terraform-provider-docker
$ make build
The Terraform Docker Provider is the work of many of contributors. We appreciate your help!
To contribute, please read the contribution guidelines: Contributing to Terraform - Docker Provider
The Terraform Provider Docker is available to everyone under the terms of the Mozilla Public License Version 2.0. Take a look the LICENSE file.