Michael Sheinberg
272125023f
Add working_dir to docker_container ( #20044 ) ( #24977 )
...
* docker_container: add working_dir (fixes #20044 )
Added a working directory option that will get passed with the other
docker container parameters. This is optional and addresses feature
request #20044 .
2017-05-24 11:41:54 -07:00
Andrew Shewmaker
f5fd32eae6
docker_container: do not split command on commas ( #24900 )
...
* docker_container: do not split command on commas
Fix issue #24430
* docker_container: document command parameter
Prior behavior was strange, splitting strings on commas
only to join them again ... replacing commas with spaces.
FYI, docker-py accepts strings or lists, using shlex.split
on strings ... splitting on spaces while respecting things
like quotes.
https://github.com/docker/docker-py/blob/master/docker/api/container.py
https://github.com/docker/docker-py/blob/master/docker/types/containers.py
https://github.com/docker/docker-py/blob/master/docker/utils/utils.py
More info regarding Dockerfile syntax for CMD strings and lists
can be found at https://docs.docker.com/engine/reference/builder/#cmd
2017-05-22 15:39:57 -07:00
Matt Martz
3324d0a4b0
Support auto_remove in docker_container ( #22929 )
...
* Support auto_remove in docker_container
* Fail if not docker>=2 and auto_remove=True, don't set auto_remove in host_config if not docker>=2
* Make quoting more readable in ansible errors
2017-05-09 16:19:27 -04:00
smaftoul
9812d211e7
typo: psuedo -> pseudo ( #23177 )
2017-03-31 10:48:29 -04:00
Chris Houseknecht
4099eb41b9
Treats both [] and {} as equal to None ( #23088 )
2017-03-29 22:48:21 +02:00
Dylan Silva
9ffad27319
Changed supported_by from curated to community ( #22654 )
2017-03-15 14:28:33 -07:00
Toshio Kuratomi
eb1214baad
New metadata 1.0 ( #22587 )
...
Changes to the metadata format were approved here:
https://github.com/ansible/proposals/issues/54
* Update documentation to the new metadata format
* Changes to metadata-tool to account for new metadata
* Add GPL license header
* Add upgrade subcommand to upgrade metadata version
* Change default metadata to the new format
* Fix exclusion of non-modules from the metadata report
* Fix ansible-doc for new module metadata
* Exclude metadata version from ansible-doc output
* Fix website docs generation for the new metadata
* Update metadata schema in valiate-modules test
* Update the metadata in all modules to the new version
2017-03-14 09:07:22 -07:00
Chris Houseknecht
b15ceee6bd
Changes command and entrypoint to type list
2017-03-13 14:39:23 -04:00
John R Barker
e5b990a55a
Fix invalid fields in module DOCUMENATION ( #22297 )
...
* fix module doc fields
* More module docs corrections
* More module docs corrections
* More module docs corrections
* More module docs corrections
* correct aliases
* Review comments
* Must quote ':'
* More authors
* Use suboptions:
* restore type: bool
* type should be in the same place
* More tidyups
* authors
* Use suboptions
* revert
* remove duplicate author
* More issues post rebase
2017-03-09 16:20:25 +00:00
Brian Coca
20bf02f6b9
rename return var to avoid conflicts
...
fixes #22323
2017-03-07 12:08:31 -05:00
Andrea Giardini
04e990281e
Add flag to Docker pull_image to know when the image is already latest ( #21508 )
...
* Add flag to Docker pull_image to know when the image is already latest
Whenever the flag pull is set to 'yes' the resource is always defined
as 'changed'. That is not true in case the image is already at the
latest version.
Related to ansible/ansible#19549
* Docker pull_image does not change status if the image is latest
2017-03-03 10:16:16 -05:00
Ryan Brown
d64d38a1f4
[cloud][docker] Insensitive search for docker port publishing ( #21579 )
2017-02-17 10:41:26 -05:00
Zhuo Peng
fe02dbecc0
[cloud] Fix a minor doc error in docker_container module ( #21033 )
2017-02-17 10:01:15 -05:00
Matt Clay
10d9318de7
PEP 8 indent cleanup. ( #20800 )
...
* PEP 8 E121 cleanup.
* PEP 8 E126 cleanup.
* PEP 8 E122 cleanup.
2017-01-29 07:28:53 +00:00
Matt Clay
d913f69ba1
PEP 8 W291 whitespace cleanup.
2017-01-27 17:08:02 -08:00
Ryan S. Brown
619e97d67e
docker_container: remove third digit from version_added docs
2017-01-25 12:04:10 -05:00
Ryan S. Brown
7a19a18e61
[docs] Update docker_container docs to match syslog-tag deprecation in docker 1.13
...
Closes #20591
2017-01-25 10:19:10 -05:00
Jun Guo
cfed617dba
Support option none in docker_container when setting log_driver ( #19040 )
...
Per official docker document, it support setting `--log-driver=none` to
disable any logging for the container. So let's add it to this module.
Fixes #5337
2017-01-23 20:23:58 +00:00
dariko
e2a1ce2916
[docker] Add compatibility with docker-py v2.0
2017-01-18 14:39:18 -05:00
Andrea Tartaglia
ef391a11ec
Removed dict.iteritems() in modules. ( #18859 )
...
This is for py3 compatibility, addressed in #18506
2016-12-12 15:16:23 -08:00
Toshio Kuratomi
7319104552
Refreshed metadata for core modules
2016-12-08 11:25:35 -05:00
Luc Charpentier
be7af0193d
error in docker_container example ( #5631 )
2016-12-08 11:25:31 -05:00
Abdul Anshad A
480c364afd
fixes issue #5517 ( #5519 )
2016-12-08 11:25:31 -05:00
Daniel Andrei Minca
ca36d232d5
fix unclear documentation for docker container
...
the docker container module's `exposed_ports` was slightly ambigous.
Use the official Docker documentation to define what an `exposed port`
is.
Resolves : ansible/ansible-modules-core#5303
Signed-off-by: Daniel Andrei Minca <mandrei17@gmail.com>
2016-12-08 11:25:22 -05:00
John R Barker
25b6492d37
Bulk spelling improvement to modules-core ( #5225 )
...
* Correct spelling mistakes
* Correct more spelling issues
* merge conflict
* Revert typo in parms
2016-12-08 11:25:20 -05:00
John Barker
bca8bbe7c2
Correct functional typos
2016-12-08 11:25:19 -05:00
Chris Houseknecht
9432adfaf7
Put requested devices in correct format to enable config comparison. Fixes #5000 .
2016-12-08 11:25:14 -05:00
Aditya Marella
c3f815a6f6
Docker module: add support for OomScoreAdj
...
* docker-py param name oom_score_adj
* translates to OomScoreAdj in the docker remote API
* setting version_added to "2.2"
2016-12-08 11:25:13 -05:00
Chris Houseknecht
e95f773d96
Set default log_driver to None to prevent config comparison when a log_driver is not specified. Fixes #4600 .
2016-12-08 11:25:03 -05:00
Chris Houseknecht
05303a974d
Purge networks using network name rather than ID. Fixes 4596.
2016-12-08 11:25:03 -05:00
Chris Houseknecht
890c2d04e2
Default restart_retries to None rather than 0. Fixes #4534 .
2016-12-08 11:25:03 -05:00
chouseknecht
fb99277066
Exposing tcp and udp for same port fails. Fixes issue #4354 .
2016-12-08 11:24:51 -05:00
chouseknecht
76260d3aa8
Fix network alias and network link comparison. - Using set based comparison was not working consistently - With != operator worked locally but consistently failed on Travis - With 'not in' operator failed locally and on Travis
2016-12-08 11:24:50 -05:00
chouseknecht
433b5e187f
If debug true, include actions and differences in output.
2016-12-08 11:24:50 -05:00
muxator
16db1d54d1
typo in the documentation of the "state" parameter ( #4353 )
2016-12-08 11:24:48 -05:00
chouseknecht
0c4da5d3a0
Added implementation of ignore_image, which prevents recreation of containers on image change.
2016-12-08 11:24:47 -05:00
chouseknecht
5992c21c9c
Fix #3670 host IP defaults to 0.0.0.0 ignoriing bridge Host IP option.
2016-12-08 11:24:47 -05:00
Chris Houseknecht
c91de38322
Entrypoint fails with 'command not found' error.
2016-12-08 11:24:43 -05:00
Chris Houseknecht
4002caf60e
Fix module failing when no ports are exposed
2016-12-08 11:24:43 -05:00
Chris Houseknecht
030dcccad4
Fix multi-interface port binding.
2016-12-08 11:24:43 -05:00
Chris Houseknecht
bd3e1c77fe
Add cleanup parameter. ( #4144 )
2016-12-08 11:24:43 -05:00
Chris Houseknecht
7515b2d563
Fix 'all' option for published_ports parameter.
2016-12-08 11:24:43 -05:00
Chris Houseknecht
dc496ffeb4
Fix purge_networks
2016-12-08 11:24:43 -05:00
chouseknecht
1e9590ab65
Fix index
2016-12-08 11:24:38 -05:00
chouseknecht
cc053c45ce
Fix ulimit comparison
2016-12-08 11:24:38 -05:00
Hagen Kuehn
320aea77c6
fixed unknown type <type 'list'> error ( #3959 )
2016-12-08 11:24:37 -05:00
chouseknecht
16e7dc4e2e
Remove dns from container create parameters.
2016-12-08 11:24:37 -05:00
chouseknecht
4d51a51ac3
Fix #3945 docker_container detach not waiting on container to execute.
2016-12-08 11:24:37 -05:00
chouseknecht
82436d5519
Fix #3941
2016-12-08 11:24:37 -05:00
chouseknecht
617c230b62
Fix #16211 - only stop/kill running containers
2016-12-08 11:24:36 -05:00
chouseknecht
fc486824b8
Fix issue #3866
2016-12-08 11:24:35 -05:00
chouseknecht
9549c66a56
Fix #147 automatically expose published ports
2016-12-08 11:24:34 -05:00
chouseknecht
17fc0f11db
Remove unused method in ContainerManager
2016-12-08 11:24:34 -05:00
Mike Mars
e2dbd0f445
Fixing Docker compile time errors irt exception handling for Python 3
2016-12-08 11:24:34 -05:00
chouseknecht
ec9f56d8e0
Fix #3822 stop container
2016-12-08 11:24:33 -05:00
chouseknecht
c9e4955d38
Remove registery option per #3824 .
2016-12-08 11:24:33 -05:00
chouseknecht
be2d32f04d
Fix upate typo and expected volume compare.
2016-12-08 11:24:33 -05:00
chouseknecht
9dd95efe76
Fixed binds and volumes. Now recognizes bound vs unbound as well as named volumes.
2016-12-08 11:24:33 -05:00
Jirayut 'Dear' Nimsaeng
d373e0a7c4
Fix volume to support not binding volumes to host
2016-12-08 11:24:33 -05:00
chouseknecht
96192ead02
Remove debug/register from examples.
2016-12-08 11:24:33 -05:00
chouseknecht
3d0d14c5ff
Fix network comparison. Fix handling of links. Updated doc strings. Added more examples.
2016-12-08 11:24:33 -05:00
chouseknecht
a4bd558240
Set version added to 2.2 so that tests pass
2016-12-08 11:24:32 -05:00
chouseknecht
e398efb04f
For new options move vesion_added to 2.1.1
2016-12-08 11:24:32 -05:00
chouseknecht
c8f63e867a
Fixed bug in _get_network_id
2016-12-08 11:24:32 -05:00
chouseknecht
a9ddb5023d
Fix doc strings.
2016-12-08 11:24:32 -05:00
chouseknecht
1d327a23cd
Fixed issues post testing.
2016-12-08 11:24:32 -05:00
chouseknecht
39bfb136a7
First pass at implementing networks parameter. Also added purge_networks option to remove container from networks not included in networks param.
2016-12-08 11:24:32 -05:00
chouseknecht
f3c33ee35f
Fix for 3768 - adding support for env_file
2016-12-08 11:24:32 -05:00
chouseknecht
2016911e64
Check self.parameters.env exists.
2016-12-08 11:24:32 -05:00
chouseknecht
bc665fca9c
Fix for issue #3775 - env config comparison
2016-12-08 11:24:32 -05:00
chouseknecht
65e71d8960
Update restart_policy doc strings.
2016-12-08 11:24:32 -05:00
chouseknecht
b5666c0f1c
Fix restart_poicy
2016-12-08 11:24:32 -05:00
chouseknecht
8f9ef1213d
Fix for #3783 - command returns not found or does not exist.
2016-12-08 11:24:32 -05:00
Dan Schmidt
c8ec843ac2
Fix "ansbile_facts" typo in docker_container module
2016-12-08 11:24:32 -05:00
Chris Houseknecht
8ba5cc4392
Fixed parameters passing in container_create method. ( #3618 )
2016-12-08 11:24:27 -05:00
Brian Coca
c03e1bd2d5
fixed documentation and arg issues
2016-12-08 11:24:26 -05:00
John R Barker
d13046a905
ansible-validate-modules part 4: Enable check on ansible-modules-core ( #3526 )
...
* Call ansible-validate-modules
* Correct quotes + add newline
2016-12-08 11:24:26 -05:00
Chris Houseknecht
bc3391f1f9
Adding docker_container ( #3495 )
...
* Adding docker_container
* If state absent, stop the container before attempting to remove. Fixed status running check.
* If container absent, stop before removing. Fix container status check.
2016-12-08 11:24:25 -05:00