fix(container): remove log_driver's default value and make log_driver computed (#270)

* fix(container): remove log_driver's default value and make log_driver `computed`
* fix: update the description
* docs: make website-generation

Co-authored-by: Manuel Vogel <mavogel@posteo.de>
This commit is contained in:
Shunsuke Suzuki 2021-11-30 15:51:49 +09:00 committed by GitHub
parent f8422a558e
commit 1e55894715
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -57,7 +57,7 @@ resource "docker_image" "ubuntu" {
- **ipc_mode** (String) IPC sharing mode for the container. Possible values are: `none`, `private`, `shareable`, `container:<name|id>` or `host`.
- **labels** (Block Set) User-defined key/value metadata (see [below for nested schema](#nestedblock--labels))
- **links** (Set of String, Deprecated) Set of links for link based connectivity between containers that are running on the same host.
- **log_driver** (String) The logging driver to use for the container. Defaults to `json-file`.
- **log_driver** (String) The logging driver to use for the container.
- **log_opts** (Map of String) Key/value pairs to use as options for the logging driver.
- **logs** (Boolean) Save the container logs (`attach` must be enabled). Defaults to `false`.
- **max_retry_count** (Number) The maximum amount of times to an attempt a restart when `restart` is set to 'on-failure'.

View file

@ -708,8 +708,8 @@ func resourceDockerContainer() *schema.Resource {
"log_driver": {
Type: schema.TypeString,
Description: "The logging driver to use for the container. Defaults to `json-file`.",
Default: "json-file",
Description: "The logging driver to use for the container.",
Computed: true,
Optional: true,
ForceNew: true,
},