NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

[All Platforms] nemoclaw destroy leaves orphaned gateway and Docker volume after last sandbox is removed

Open eko-liu opened this issue 8 months ago • 1 comments

Description

[Description] nemoclaw <name> destroy removes the sandbox but does NOT clean up the OpenShell gateway or its Docker volume when the last sandbox is destroyed.

[Environment]

  • Ubuntu 22.04 / 24.04 (reproduced on both)
  • NemoClaw v0.1.0 (curl|bash install)
  • OpenShell 0.0.16
  • Docker CE

[Steps to Reproduce]1. nemoclaw onboard → create sandbox (e.g. my-assistant) 2. nemoclaw my-assistant destroy → confirm Y 3. nemoclaw list → "No sandboxes registered" 4. docker volume ls | grep openshell → openshell-cluster-nemoclaw 5. lsof -i :8080 → gateway still listening

[Expected Result] After destroying the last sandbox:

  • Docker volume openshell-cluster-nemoclaw should be removed
  • Port 8080 should be freed (gateway stopped)
  • Or: provide nemoclaw cleanup / nemoclaw gateway destroy command

[Actual Result]

  • Sandbox deleted successfully
  • Docker volume orphaned (never garbage collected)
  • Gateway process continues running on port 8080 indefinitely with 0 sandboxes
  • No CLI command exists to clean up gateway without manual Docker commands

[Workaround] docker stop $(docker ps -q --filter name=openshell-cluster) docker rm $(docker ps -aq --filter name=openshell-cluster) docker volume rm openshell-cluster-nemoclaw

[Related] GitHub #859, #888, #910

Steps to reproduce

No steps provided.


[NVB# 6034865]

[NVB#6034865]

[NVB#6038812]

eko-liu avatar Mar 31 '26 10:03 eko-liu

@jacobtomlinson @ericksoa @drobison00 Reproduced consistently — after nemoclaw destroy removes the last sandbox, the gateway process keeps running on port 8080 and Docker volume openshell-cluster-nemoclaw is never cleaned up. This causes port conflicts on subsequent onboard and wastes disk space. Users currently need manual Docker commands to clean up. A nemoclaw cleanup command or automatic gateway teardown on last-sandbox-destroy would be very helpful.

hulynn avatar Mar 31 '26 12:03 hulynn