Fix Unix socket path. (#736)

This commit is contained in:
Felix Fontein
2024-01-01 22:53:58 +01:00
committed by GitHub
parent 56bbef2b44
commit 199d9e50d3
5 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -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:
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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