LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lxc-stop

stops a running Linux container

TLDR

Stop container
$ sudo lxc-stop [container_name]
copy
Display help
$ lxc-stop --help
copy

SYNOPSIS

lxc-stop -n name [options]

DESCRIPTION

lxc-stop stops a running Linux container. It sends SIGPWR and SIGKILL signals to gracefully shut down the container's init process.

PARAMETERS

-n, --name NAME

Container name
-k, --kill
Kill container immediately (SIGKILL)
-W, --nowait
Don't wait for shutdown
-t, --timeout SECONDS
Shutdown timeout before kill
-r, --reboot
Reboot instead of stop
-?, --help
Display help information

INSTALL

sudo apt install lxc
copy
sudo dnf install lxc
copy
sudo pacman -S lxc
copy
sudo apk add lxc
copy
sudo zypper install lxc
copy
brew install lxc
copy
nix profile install nixpkgs#lxc
copy

CAVEATS

Requires root privileges. Graceful shutdown may take time. Use --kill for immediate termination.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid