mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-16 11:58:43 +00:00
Fix Unix socket path. (#736)
This commit is contained in:
parent
56bbef2b44
commit
199d9e50d3
2
changelogs/fragments/host.yml
Normal file
2
changelogs/fragments/host.yml
Normal file
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- "Use ``unix:///var/run/docker.sock`` instead of the legacy ``unix://var/run/docker.sock`` as default for ``docker_host`` (https://github.com/ansible-collections/community.docker/pull/736)."
|
||||
@ -21,7 +21,7 @@ options:
|
||||
- If the value is not specified in the task, the value of environment variable E(DOCKER_HOST) will be used
|
||||
instead. If the environment variable is not set, the default value will be used.
|
||||
type: str
|
||||
default: unix://var/run/docker.sock
|
||||
default: unix:///var/run/docker.sock
|
||||
aliases: [ docker_url ]
|
||||
tls_hostname:
|
||||
description:
|
||||
@ -198,7 +198,7 @@ options:
|
||||
- If the value is not specified in the task, the value of environment variable E(DOCKER_HOST) will be used
|
||||
instead. If the environment variable is not set, the default value will be used.
|
||||
type: str
|
||||
default: unix://var/run/docker.sock
|
||||
default: unix:///var/run/docker.sock
|
||||
aliases: [ docker_url ]
|
||||
tls_hostname:
|
||||
description:
|
||||
|
||||
@ -106,7 +106,7 @@ options:
|
||||
EXAMPLES = '''
|
||||
# Minimal example using local Docker daemon
|
||||
plugin: community.docker.docker_containers
|
||||
docker_host: unix://var/run/docker.sock
|
||||
docker_host: unix:///var/run/docker.sock
|
||||
|
||||
# Minimal example using remote Docker daemon
|
||||
plugin: community.docker.docker_containers
|
||||
|
||||
@ -34,7 +34,7 @@ DOCUMENTATION = '''
|
||||
docker_host:
|
||||
description:
|
||||
- Socket of a Docker swarm manager node (C(tcp), C(unix)).
|
||||
- "Use V(unix://var/run/docker.sock) to connect via local socket."
|
||||
- "Use V(unix:///var/run/docker.sock) to connect via local socket."
|
||||
type: str
|
||||
required: true
|
||||
aliases: [ docker_url ]
|
||||
@ -111,7 +111,7 @@ DOCUMENTATION = '''
|
||||
EXAMPLES = '''
|
||||
# Minimal example using local docker
|
||||
plugin: community.docker.docker_swarm
|
||||
docker_host: unix://var/run/docker.sock
|
||||
docker_host: unix:///var/run/docker.sock
|
||||
|
||||
# Minimal example using remote docker
|
||||
plugin: community.docker.docker_swarm
|
||||
|
||||
@ -14,7 +14,7 @@ from ansible.module_utils.common.collections import is_sequence
|
||||
from ansible.module_utils.six.moves.urllib.parse import urlparse
|
||||
|
||||
|
||||
DEFAULT_DOCKER_HOST = 'unix://var/run/docker.sock'
|
||||
DEFAULT_DOCKER_HOST = 'unix:///var/run/docker.sock'
|
||||
DEFAULT_TLS = False
|
||||
DEFAULT_TLS_VERIFY = False
|
||||
DEFAULT_TLS_HOSTNAME = 'localhost' # deprecated
|
||||
|
||||
Loading…
Reference in New Issue
Block a user