We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a41f5e commit 68c463aCopy full SHA for 68c463a
1 file changed
skipper/runner.py
@@ -2,6 +2,7 @@
2
import getpass
3
import grp
4
import logging
5
+import re
6
import os
7
import subprocess
8
from contextlib import contextmanager
@@ -251,7 +252,7 @@ def _destroy_network(net):
251
252
def _network_exists(net):
253
cmd = ['network', 'ls', "-f", f"NAME={net}"]
254
result = utils.run_container_command(cmd)
- return net in result
255
+ return bool(re.search(rf'\b{net}\b', result))
256
257
258
def get_docker_config_volume_suffix():
0 commit comments