As part of our introduction to self-service publishing in the Terraform Registry, this copy of the provider has been archived, and ownership has been transferred to active maintainers in the community. Please see the new location on the Terraform Registry: https://registry.terraform.io/providers/kreuzwerker/docker/latest
The integer 440 was used as the file_mode value, which corresponds to 0670 octal -- which is not the correct.
It's also interesting to note that file_gid and file_uid get preserved as strings, but file_mode does not.
Temporary Workaround
Using a decimal value (i.e. 288 instead of 0440) does the trick -- but this is counter-intuitive with the firmly-entrenched decades-old tradition of specifying mode in octal.
Terraform Version
Terraform v0.12.23
provider.docker: version = "~> 2.7"
(v2.7.0)Affected Resource(s)
Please list the resources as a list, for example:
docker_service
Terraform Configuration Files
Plan Output
Expected Behavior
file_mode
probably should have remained a string "0440" or have been converted from octal to decimal.https://docs.docker.com/engine/reference/commandline/service_create/#create-a-service-with-secrets indicates that the secret's and config's
mode=
value should be a 4-number sequence, and explicitly shows a leading0
.Actual Behavior
The integer
440
was used as thefile_mode
value, which corresponds to0670
octal -- which is not the correct.It's also interesting to note that
file_gid
andfile_uid
get preserved as strings, butfile_mode
does not.Temporary Workaround
Using a decimal value (i.e.
288
instead of0440
) does the trick -- but this is counter-intuitive with the firmly-entrenched decades-old tradition of specifying mode in octal.