From 7e1f877bc39e2f7cecb97e158e103ed347398be1 Mon Sep 17 00:00:00 2001 From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com> Date: Mon, 26 Oct 2026 09:45:22 -0300 Subject: [PATCH] Match create and prune endpoints exactly Close #45 --- docker-proxy-config.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docker-proxy-config.py b/docker-proxy-config.py index 66dd499..02c60ec 100644 --- a/docker-proxy-config.py +++ b/docker-proxy-config.py @@ -45,8 +45,8 @@ "CONTAINERS_UNPAUSE": {"type": "POST", "regex": "containers/[a-zA-Z0-9_.-]+/unpause"}, "CONTAINERS_WAIT": {"type": "POST", "regex": "containers/[a-zA-Z0-9_.-]+/wait"}, "CONTAINERS_EXEC": {"type": "POST", "regex": "containers/[a-zA-Z0-9_.-]+/exec"}, - "CONTAINERS_CREATE": {"type": "POST", "regex": "containers/create"}, - "CONTAINERS_PRUNE": {"type": "POST", "regex": "containers/prune"}, + "CONTAINERS_CREATE": {"type": "POST", "regex": "containers/create$"}, + "CONTAINERS_PRUNE": {"type": "POST", "regex": "containers/prune$"}, "CONTAINERS": {"type": "GET", "regex": "containers"}, # End Container commands "DISTRIBUTION": {"type": "GET", "regex": "distribution"}, @@ -54,16 +54,16 @@ "EXEC": {"type": "POST GET", "regex": "exec"}, # Images commands "IMAGES_BUILD": {"type": "GET", "regex": "build"}, - "IMAGES_CREATE": {"type": "POST", "regex": "images/create"}, - "IMAGES_PRUNE": {"type": "POST", "regex": "images/prune"}, + "IMAGES_CREATE": {"type": "POST", "regex": "images/create$"}, + "IMAGES_PRUNE": {"type": "POST", "regex": "images/prune$"}, "IMAGES": {"type": "GET", "regex": "images"}, # End Images commands "INFO": {"type": "GET", "regex": "info"}, # Network Commands "NETWORKS_CONNECT": {"type": "POST", "regex": "networks/[a-zA-Z0-9_.-]+/connect"}, "NETWORKS_DISCONNECT": {"type": "POST", "regex": "networks/[a-zA-Z0-9_.-]+/disconnect"}, - "NETWORKS_CREATE": {"type": "POST", "regex": "networks/create"}, - "NETWORKS_PRUNE": {"type": "POST", "regex": "networks/prune"}, + "NETWORKS_CREATE": {"type": "POST", "regex": "networks/create$"}, + "NETWORKS_PRUNE": {"type": "POST", "regex": "networks/prune$"}, "NETWORKS": {"type": "GET", "regex": "networks"}, # End Network Commands "NODES": {"type": "GET POST", "regex": "nodes"}, @@ -77,8 +77,8 @@ "TASKS": {"type": "GET", "regex": "tasks"}, "VERSION": {"type": "GET", "regex": "version"}, # Volume commands - "VOLUMES_CREATE": {"type": "POST", "regex": "volumes/create"}, - "VOLUMES_PRUNE": {"type": "POST", "regex": "volumes/prune"}, + "VOLUMES_CREATE": {"type": "POST", "regex": "volumes/create$"}, + "VOLUMES_PRUNE": {"type": "POST", "regex": "volumes/prune$"}, "VOLUMES": {"type": "GET", "regex": "volumes"} # End volume commands }