lxc
Manage Linux containers using the lxd REST API. Any container names or patterns can be prefixed with the name of a remote server. More information: <https://manned.org/lxc>.
Install
- All systems
-
curl cmd.cat/lxc.sh
- Debian
-
apt-get install lxc
- Ubuntu
-
apt-get install lxd-client
- Alpine
-
apk add lxc
- Arch Linux
-
pacman -S lxc
- Kali Linux
-
apt-get install lxc
- Fedora
-
dnf install lxc
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install lxd-client
- OS X
-
brew install lxc
- Raspbian
-
apt-get install lxc
- Dockerfile
- dockerfile.run/lxc
- Docker
-
docker run cmd.cat/lxc lxc
powered by Commando
Manage Linux containers using the lxd REST API. Any container names or patterns can be prefixed with the name of a remote server. More information: <https://manned.org/lxc>.
-
List local containers matching a string. Omit the string to list all local containers:
lxc list match_string
-
List images matching a string. Omit the string to list all images:
lxc image list [remote:]match_string
-
Create a new container from an image:
lxc init [remote:]image container
-
Start a container:
lxc start [remote:]container
-
Stop a container:
lxc stop [remote:]container
-
Show detailed info about a container:
lxc info [remote:]container
-
Take a snapshot of a container:
lxc snapshot [remote:]container snapshot
-
Execute a specific command inside a container:
lxc exec [remote:]container command
© tl;dr; authors and contributors