From ef5dc63c8c9d4f84e88f8622b44491303ca99f72 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Thu, 8 Jan 2026 19:34:19 +0000 Subject: vcontainer: fix ps -q to suppress port forward display When using `ps -q` or `ps --quiet`, only container IDs should be output. The port forward registry display was being included, which broke cleanup code that expected just container IDs. Signed-off-by: Bruce Ashfield --- tests/test_vdkr.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/test_vdkr.py b/tests/test_vdkr.py index c343e05f..33744107 100644 --- a/tests/test_vdkr.py +++ b/tests/test_vdkr.py @@ -101,16 +101,16 @@ class TestPortForwarding: # Stop any running memres first vdkr.memres_stop() - # Start memres with port forwarding - result = vdkr.memres_start(timeout=180, port_forwards=["8080:80"]) + # Start memres (no static port forwards needed - use dynamic via -p on run) + result = vdkr.memres_start(timeout=180) assert result.returncode == 0, f"memres start failed: {result.stderr}" try: # Pull nginx:alpine if not present vdkr.run("pull", "nginx:alpine", timeout=300) - # Run nginx (--network=host is the default) - result = vdkr.run("run", "-d", "--rm", "nginx:alpine", timeout=60) + # Run nginx with port forward - Docker sets up iptables for bridge networking + result = vdkr.run("run", "-d", "--rm", "-p", "8080:80", "nginx:alpine", timeout=60) assert result.returncode == 0, f"nginx run failed: {result.stderr}" # Give nginx time to start -- cgit v1.2.3-54-g00ecf