--- description: Docker container management (local or remote) argument-hint: [ps|logs|restart] [container] [@host] --- # Docker Management Manage Docker containers locally or on remote hosts. ## Commands | Command | Description | |---------|-------------| | `ps` | List running containers | | `logs ` | Show container logs | | `restart ` | Restart container | | `stop ` | Stop container | | `start ` | Start container | ## Remote Hosts Append `@host` to run on remote: - `@hai` → hofmanns.ai (100.64.0.1) - `@git` → git.hofmanns.tech (100.64.0.6) - `@rtx` → local RTX machine ## Instructions 1. Parse: $ARGUMENTS 2. If `@host` suffix, run via SSH: ```bash ssh user@host 'docker ' ``` 3. Otherwise run locally: ```bash docker ``` 4. Format output: ``` 🐳 DOCKER STATUS [@hai] ┌────────────────┬─────────────┬────────┐ │ Container │ Status │ Ports │ ├────────────────┼─────────────┼────────┤ │ caddy │ 🟢 Up 5d │ 80,443 │ │ synapse │ 🟢 Up 5d │ 8008 │ │ authentik │ 🟢 Up 5d │ 9000 │ └────────────────┴─────────────┴────────┘ ```