mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-02-10 14:23:43 -05:00
37 lines
961 B
Cheetah
37 lines
961 B
Cheetah
|
|
---
|
||
|
|
# generated by https://github.com/hashicorp/terraform-plugin-docs
|
||
|
|
page_title: "{{.Type}} {{.Name}} - {{.ProviderName}}"
|
||
|
|
subcategory: ""
|
||
|
|
description: |-
|
||
|
|
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
|
||
|
|
---
|
||
|
|
<!-- Bug: Type and Name are switched -->
|
||
|
|
# {{.Type}} ({{.Name}})
|
||
|
|
|
||
|
|
{{ .Description | trimspace }}
|
||
|
|
|
||
|
|
## Example Usage
|
||
|
|
|
||
|
|
{{tffile "examples/resources/docker_network/resource.tf"}}
|
||
|
|
|
||
|
|
{{ .SchemaMarkdown | trimspace }}
|
||
|
|
|
||
|
|
## Import
|
||
|
|
|
||
|
|
Import is supported using the following syntax by providing the `id`:
|
||
|
|
|
||
|
|
{{codefile "shell" "examples/resources/docker_network/import.sh" }}
|
||
|
|
|
||
|
|
### Example
|
||
|
|
|
||
|
|
Assuming you created a `network` as follows
|
||
|
|
|
||
|
|
{{codefile "shell" "examples/resources/docker_network/import-create.sh" }}
|
||
|
|
|
||
|
|
you provide the definition for the resource as follows
|
||
|
|
|
||
|
|
{{tffile "examples/resources/docker_network/import-resource.tf" }}
|
||
|
|
|
||
|
|
then the import command is as follows
|
||
|
|
|
||
|
|
{{codefile "shell" "examples/resources/docker_network/import-resource.sh" }}
|