mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-16 11:58:43 +00:00
parent
5cea1cdc6d
commit
b0906c78ab
@ -133,8 +133,24 @@
|
|||||||
|
|
||||||
- name: Get proxied daemon URLs
|
- name: Get proxied daemon URLs
|
||||||
set_fact:
|
set_fact:
|
||||||
docker_daemon_frontend_https: "https://{{ nginx_container.container.NetworkSettings.Networks[current_container_network_ip].IPAddress if current_container_network_ip else nginx_container.container.NetworkSettings.IPAddress }}:5000"
|
# Since Docker 29, nginx_container.container.NetworkSettings.IPAddress no longer exists.
|
||||||
docker_daemon_frontend_http: "http://{{ nginx_container.container.NetworkSettings.Networks[current_container_network_ip].IPAddress if current_container_network_ip else nginx_container.container.NetworkSettings.IPAddress }}:6000"
|
# Use the bridge network's IP address instead...
|
||||||
|
docker_daemon_frontend_https: >-
|
||||||
|
https://{{
|
||||||
|
nginx_container.container.NetworkSettings.Networks[current_container_network_ip].IPAddress
|
||||||
|
if current_container_network_ip else (
|
||||||
|
nginx_container.container.NetworkSettings.IPAddress
|
||||||
|
| default(nginx_container.container.NetworkSettings.Networks['bridge'].IPAddress)
|
||||||
|
)
|
||||||
|
}}:5000
|
||||||
|
docker_daemon_frontend_http: >-
|
||||||
|
http://{{
|
||||||
|
nginx_container.container.NetworkSettings.Networks[current_container_network_ip].IPAddress
|
||||||
|
if current_container_network_ip else (
|
||||||
|
nginx_container.container.NetworkSettings.IPAddress
|
||||||
|
| default(nginx_container.container.NetworkSettings.Networks['bridge'].IPAddress)
|
||||||
|
)
|
||||||
|
}}:6000
|
||||||
|
|
||||||
- name: Wait for registry frontend
|
- name: Wait for registry frontend
|
||||||
uri:
|
uri:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user