fix: check for docker at absolute path /opt/fw/docker/bin/docker
This commit is contained in:
parent
84612e4c7e
commit
d6fdbbe8db
1 changed files with 8 additions and 5 deletions
|
|
@ -128,9 +128,12 @@ def main():
|
|||
|
||||
print(f"═══ Wallarm Node Manager v{VERSION} ═══\n")
|
||||
print("Preflight checks...")
|
||||
if not shutil.which("docker"):
|
||||
print(" ❌ Docker not found. Run setup.sh first.")
|
||||
docker_bin = f"{DOCKER_DIR}/bin/docker"
|
||||
if not os.path.exists(docker_bin):
|
||||
print(f" ❌ Docker not found at {docker_bin}. Run setup.sh first.")
|
||||
sys.exit(1)
|
||||
# Add to PATH for subprocess calls
|
||||
os.environ["PATH"] = f"{DOCKER_DIR}/bin:{os.environ.get('PATH', '')}"
|
||||
print(" ✅ Docker ready\n")
|
||||
|
||||
cfg = load_config()
|
||||
|
|
|
|||
Loading…
Reference in a new issue