terraform-provider-docker

command module
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 7 Imported by: 0

README

Docker provider for terraform

This document describes how to build and use the docker terraform provider.

This provider lets you fetch information about docker images from a docker registry without requiring a local docker daemon

Example usage

terraform {
  required_providers {
    docker = "~> 1.0"
  }
}

provider "docker" {
  registry   = "index.docker.io"
  username   = ""
  password   = ""
}

data "docker_registry_image" "debian" {
  name = "library/debian"
  tag  = "latest"
}

How to build

To build an test the plugin locally first create a ~/.terraformrc file

provider_installation {

  dev_overrides {
    "habakke/docker" = "/Users/habakke/.terraform.d/plugins"
  }
  direct {}
}

Then build and install the plugin locally using

make install

Running tests

To run the internal unit tests run test test make target

make test

To run terraform acceptance tests, the TF_ACC env variable must be set to true before making the test make target, or the testacc make target can be used

make testacc

TODO

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL