terraform/builtin/providers/docker
Daniel Portella 88cdae91e6 provider/docker: added support for linux capabilities (#12045)
* added support for linux capabilities

Refs #11623

Added capabilities block
Added tests for it
Added documentation for it.

My PC doesnt support memory swap so it errors there.

```
$ make testacc TEST=./builtin/providers/docker TESTARGS='-run=TestAccDockerContainer_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/02/17 14:57:08 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/docker -v -run=TestAccDockerContainer_ -timeout 120m
=== RUN   TestAccDockerContainer_basic
--- PASS: TestAccDockerContainer_basic (44.50s)
=== RUN   TestAccDockerContainer_volume
--- PASS: TestAccDockerContainer_volume (40.73s)
=== RUN   TestAccDockerContainer_customized
--- FAIL: TestAccDockerContainer_customized (50.27s)
	testing.go:265: Step 0 error: Check failed: Check 2/2 error: Container has wrong memory swap setting: -1
	Please check that you machine supports memory swap (you can do that by running 'docker info' command).
=== RUN   TestAccDockerContainer_upload
--- PASS: TestAccDockerContainer_upload (38.56s)
FAIL
exit status 1
FAIL	github.com/hashicorp/terraform/builtin/providers/docker	174.070s
Makefile:48: recipe for target 'testacc' failed
make: *** [testacc] Error 1
```

* Documentation changes.

* added maxitems and rerun tests
2017-03-07 18:48:20 +02:00
..
config.go provider/docker: fix regression, cert_path stop working (#10754) (#10801) 2016-12-17 12:41:08 +00:00
data_source_docker_registry_image.go provider/docker: Added docker_registry_image data source (#7000) 2016-07-26 16:18:38 +01:00
data_source_docker_registry_image_test.go provider/docker: Added docker_registry_image data source (#7000) 2016-07-26 16:18:38 +01:00
provider.go provider/docker: fix regression, cert_path stop working (#10754) (#10801) 2016-12-17 12:41:08 +00:00
provider_test.go providers/docker: docker_image acceptance test 2015-03-27 15:22:33 -07:00
resource_docker_container.go provider/docker: added support for linux capabilities (#12045) 2017-03-07 18:48:20 +02:00
resource_docker_container_funcs.go provider/docker: added support for linux capabilities (#12045) 2017-03-07 18:48:20 +02:00
resource_docker_container_test.go provider/docker: added support for linux capabilities (#12045) 2017-03-07 18:48:20 +02:00
resource_docker_image.go provider/docker: Add support for a list of pull_triggers within the docker_image resource. (#10845) 2017-01-03 16:10:39 +00:00
resource_docker_image_funcs.go provider/docker: Add support for a list of pull_triggers within the docker_image resource. (#10845) 2017-01-03 16:10:39 +00:00
resource_docker_image_test.go provider/docker: Add support for a list of pull_triggers within the docker_image resource. (#10845) 2017-01-03 16:10:39 +00:00
resource_docker_network.go provider/docker: Add network create --internal flag support (#10932) 2017-01-03 11:46:16 +00:00
resource_docker_network_funcs.go provider/docker: Add network create --internal flag support (#10932) 2017-01-03 11:46:16 +00:00
resource_docker_network_test.go provider/docker: Add network create --internal flag support (#10932) 2017-01-03 11:46:16 +00:00
resource_docker_volume.go provider/docker: Add `docker_volume` resource 2016-01-15 17:34:53 +00:00
resource_docker_volume_test.go provider/docker: Add `docker_volume` resource 2016-01-15 17:34:53 +00:00