Skip to content

Commit

Permalink
docker: lower timeout when controller polls for docker version and al…
Browse files Browse the repository at this point in the history
…low a longer retry delay
  • Loading branch information
saltydk committed Dec 18, 2024
1 parent dc46bb0 commit 0d52f26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion roles/docker/tasks/subtasks/controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
status_code: 200
register: result
retries: 12
delay: 5
delay: 10

- name: Controller | Block Docker Controller
ansible.builtin.uri:
Expand Down
2 changes: 1 addition & 1 deletion scripts/saltbox_docker_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ async def lifespan(app: FastAPI):

for attempt in range(1, retry_attempts + 1):
try:
client = docker.from_env()
client = docker.from_env(timeout=10)
docker_version = client.version()
logging.info(f"Using Docker version: {docker_version['Components'][0]['Version']}")

Expand Down

0 comments on commit 0d52f26

Please sign in to comment.