nkapp stop
Stop running services without removing their containers. Stopped containers retain their state and can be restarted quickly.
nkapp stop [services...] [options]Arguments
| Argument | Type | Description |
|---|---|---|
services | string[] | Optional list of service names to stop. If omitted, stops all services. |
Options
| Flag | Type | Default | Description |
|---|---|---|---|
-e, --env <env> | string | local | Target environment |
Remote Support
For remote environments, Nanokit automatically establishes an SSH tunnel to the target host before issuing stop commands to the remote Docker daemon.
Examples
# Stop all services in local environment
nkapp stop
# Stop specific services
nkapp stop api worker
# Stop staging services
nkapp stop -e stage[!NOTE] Unlike
nkapp destroy, stopped containers are not removed. Usenkapp upto restart them.