diff --git a/docs/resources/container.md b/docs/resources/container.md index 6ea274fea..aa2b12f65 100644 --- a/docs/resources/container.md +++ b/docs/resources/container.md @@ -37,7 +37,7 @@ resource "docker_image" "ubuntu" { - `attach` (Boolean) If `true` attach to the container after its creation and waits the end of its execution. Defaults to `false`. - `capabilities` (Block Set, Max: 1) Add or drop certrain linux capabilities. (see [below for nested schema](#nestedblock--capabilities)) -- `command` (List of String) The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-","baz.con"]`. +- `command` (List of String) The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.con"]`. - `container_read_refresh_timeout_milliseconds` (Number) The total number of milliseconds to wait for the container to reach status 'running' - `cpu_set` (String) A comma-separated list or hyphen-separated range of CPUs a container can use, e.g. `0-1`. - `cpu_shares` (Number) CPU shares (relative weight) for the container. diff --git a/internal/provider/resource_docker_container.go b/internal/provider/resource_docker_container.go index 907819b91..13ee3fc2b 100644 --- a/internal/provider/resource_docker_container.go +++ b/internal/provider/resource_docker_container.go @@ -153,7 +153,7 @@ func resourceDockerContainer() *schema.Resource { "command": { Type: schema.TypeList, - Description: "The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `[\"/usr/bin/myprogram\",\"-\",\"baz.con\"]`.", + Description: "The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `[\"/usr/bin/myprogram\",\"-f\",\"baz.con\"]`.", Optional: true, ForceNew: true, Computed: true,