James Cammarata
36bd9efb70
Stop/remove existing docker container if the specified tag is different
...
Fixes #8278
10 years ago
Eric D. White
f44125ccb7
Issue 8735 - module docker - expose values should be striped to ensure port forwarding works.
10 years ago
James Cammarata
6b3f7a82fb
Fixing bug with image/tag pulling in docker module
...
Fixes #8670
10 years ago
James Cammarata
92f7aa79b0
Fix bad commit from #8095 and fix bad splitting on :'s in the image
...
Fixes #8095
Fixes #8658
10 years ago
James Cammarata
8dafacd4e9
Make env param a dict type instead of list
...
Also modifies param type checking code to remove whitespace from
around params before splitting them into k=v pairs.
Fixes #8199
10 years ago
James Cammarata
8c7b449ccc
Update version_added field for docker_api_version param
10 years ago
James Cammarata
4f7844b70b
Merge branch 'add-docker-api-version-parameter' of https://github.com/jmoretti/ansible into jmoretti-add-docker-api-version-parameter
10 years ago
James Cammarata
5d0118797e
Merge branch 'devel' of https://github.com/kolloch/ansible into kolloch-devel
10 years ago
James Cammarata
4a08aac2cb
Updating version_added for docker net param and adding an example
10 years ago
James Cammarata
1051748ba0
Merge branch 'docker-add-net-parameter' of https://github.com/discordianfish/ansible into discordianfish-docker-add-net-parameter
10 years ago
James Cammarata
f5021f7289
Merge branch 'fixes/docker-volumes' of https://github.com/devpopol/ansible into devpopol-fixes/docker-volumes
10 years ago
Kurt Yoder
8ee6906885
Fix Docker image name parsing
...
Fixes #8357
10 years ago
Joe Moretti
8357ca2b36
Add optional docker_api_version parameter to Docker Module
11 years ago
Peter Kolloch
7a6354f753
Hack to fix #7738 : Allow tag in image parameter of docker module
...
It also defaults to the "latest" tag for pulling the image
instead of pulling all versions.
11 years ago
Paul Myjavec
074a6f3e3e
Docker links and required alias
...
If no alias is passed one will now be created for you with the same name
as the target link container, as per the documentation
11 years ago
Johannes 'fish' Ziemke
352daa0138
Add networking mode parameter (net) to docker
...
Since 0.11 Docker supports different networking modes (see docker run
--net). This commit add support for that to the ansible docker module.
This depends on
2d58351164
11 years ago
Stephen Paul Suarez
2c8564e787
fix spacing
11 years ago
Stephen Paul Suarez
1edcee5ae8
fix typo
11 years ago
Stephen Paul Suarez
d1da454da6
support rw bind mode in docker module
11 years ago
Matt Bray
8363ab5a6f
docker: fix targetting images by name
11 years ago
James Cammarata
154ef942eb
Merge pull request #7404 from jimi-c/issue_7363_docker_names
...
Make sure the docker data has a "Names" field before using it
11 years ago
Konstantin Shabanov
ad9225895b
Fix env splitting in docker module
...
ENV variable value could contain '=' (for example mysql://host/db?pool=10)
11 years ago
James Cammarata
bfc1201ecd
Make sure the docker data has a "Names" field before using it
...
Fixes #7363
11 years ago
Johannes 'fish' Ziemke
ea71c0c317
Fix: Remove check for Ghost state
...
This fixed the just committed change handling non existent Ghost state.
11 years ago
James Cammarata
c97dec9d75
Merge pull request #7338 from discordianfish/remove-ghost-state
...
Remove check for Ghost state
11 years ago
Johannes 'fish' Ziemke
b9d9ef511f
Remove check for Ghost state
...
This doesn't exist anymore and causes ansible to throw a KeyError
11 years ago
James Cammarata
5c7109b8b9
Merge pull request #7110 from orgoj/docker-patch-version_comment
...
module docker - add docker version comment
11 years ago
James Cammarata
16874464e9
Merge pull request #7047 from joshuaconner/docker_bugfix_exclude_entrypoint_from_command_check
...
docker: exclude 'entrypoint' from comparing 'command' param with containers
11 years ago
James Cammarata
060e2193a1
Merge pull request #6991 from joshuaconner/bugfix_dont_send_wrong_params_to_dockerclient_start
...
Docker: don't send wrong parameters to client.start()
11 years ago
Michael Heca
9ad6511be7
module docker - add docker version comment
...
Default docker version 0.9.1 from Ubuntu 14.04 LTS don't report APIVersion.
11 years ago
CaptTofu
2990db728a
Small bug - 'acts' should be 'facts'
11 years ago
Joshua Conner
4defd9a15a
docker: exclude 'entrypoint' from comparing 'command' param with containers
...
The JSON the Docker API returns includes the container's ENTRYPOINT value (if it has one) with the 'Command' value. So instead of checking if `container['Command'] == module.params['command']`, we just check that `container['Command'].endswith(module.params['command'])` so the entrypoint won't affect a container being properly classified as matching the module params or not.
Also I refactored a super-long `if` statement into some temporary variables - I did it to help me figure out what was going wrong, and then it makes the code more readable so I kept it.
11 years ago
Joshua Conner
10171dc42b
docker: send 1.10 params if docker-py is new enough version
11 years ago
Matt Bray
3948dc2d1d
docker.client.APIError has moved to docker.errors.APIError
...
see 18d4db09ec
11 years ago
Joshua Conner
0ef288dcc8
Docker: don't send wrong parameters to client.start()
...
As part of being updated for the 1.10 API, a couple of parameters were passed to the docker.client.start() command that it doesn't accept. This caused the module to error out if it tried to start any Docker containers. This removes those parameters so the module works again.
11 years ago
Matt Bray
71b5a11735
docker: from API 1.10 dns and volumes_from should be passed to start()
11 years ago
Michael DeHaan
7db784687d
Merge pull request #6486 from discordianfish/docker-module-add-running
...
Rename present to running, add new present state
11 years ago
Joshua Conner
7a6c60b437
docker: use type instead of manually casting strings to lists
11 years ago
Joshua Conner
7bba229838
docker bugfixes: trim whitespace around list param elements, handle list params being coerced to int or long type
11 years ago
Matt Bray
79b3efc989
docker: add tty and stdin_open options
...
Useful for development environments. Setting these options to true
allows you to `docker attach` to a docker container started with
ansible.
11 years ago
Johannes 'fish' Ziemke
32fa21c95f
Rename present to running, add new present state
...
The new present state just makes sure that a container exists, not that
it's running, although it get started one creation.
This is very useful for data volumes. This also changes the old
present, now running (default) state to only create the container if
it's not found, otherwise it just get started.
See also discussion on mailinglist:
https://groups.google.com/forum/#!topic/ansible-devel/jB84gdhPzLQ
This closes #6395
11 years ago
Joshua Conner
9c72b52c01
docker: add 'version_added' to the appropriate documentation entries
11 years ago
Joshua Conner
66eb91c2f8
docker: update to docker-py 0.3.0, plus full port binding support, container names, links
11 years ago
Pavel Antonov
dddd4b2522
Added modules description and examples
11 years ago
Pavel Antonov
df41ed90b8
Docker supports links and port binding. Added docker_image module
11 years ago
Timur Batyrshin
658c15930e
reword "except Error as e:" into "except Error, e:" to be compatible with Python 2.5 ( #5852 )
11 years ago
Michael DeHaan
6f49642286
All modules should be using /usr/bin/python in the shebang as ansible_python_interpreter processes this (see FAQ).
...
Fixing for standardization purposes.
11 years ago
Michael DeHaan
27199dc219
Merge pull request #5133 from joshuaconner/add_docker_max_version_to_docs
...
add supported docker version to docs
11 years ago
Joshua Conner
c2f128f737
add supported docker version to docs
11 years ago
James Tanner
ad837709bd
Addresses #5023 Fix import comments
11 years ago