Solaris Containers

Definition: A container is a zone plus resource management.

Zone Administration

View zones	zoneadm list -cv
Create zone	zonecfg -z {zone}
Display zone info	zonecfg -z {zone} info
Create config file	zonecfg -z {zone} export
Verify zone	zoneadm -z {zone} verify
Install zone	zoneadm -z {zone} install
Boot zone	zoneadm -z {zone} boot
Reboot zone	zoneadm -z {zone} reboot
Halt zone	zoneadm -z {zone} halt
Login to zone	zlogin {zone}
Access zone console	zlogin -C {zone}
Disconnect from console	~.
List current zone	zonename

Package Management

Add package to global zone	pkgadd -G -d . {package}
Add package to non-global zone	pkgadd -Z -d . {package}
Query all non-global packages	pkginfo -Z
Query specific zone packages	pkginfo -z {zone}

Process Management

List zone processes	ps -z {zone}
List zone ipcs	ipcs -z {zone}
Process grep	pgrep -z {zone}
Zone ptree	ptree -z {zone}
Display filesystems	df -Zk
Zone process info	prstat -Z