Skip to content

nkapp stop

Stop running services without removing their containers. Stopped containers retain their state and can be restarted quickly.

bash
nkapp stop [services...] [options]

Arguments

ArgumentTypeDescription
servicesstring[]Optional list of service names to stop. If omitted, stops all services.

Options

FlagTypeDefaultDescription
-e, --env <env>stringlocalTarget 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

bash
# 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. Use nkapp up to restart them.