Skip to content

Nice to know Unraid commands

Docker service

/etc/rc.d/rc.docker <command>

Available commands: start stop restart status

Docker containers

docker <command> <containername>

Available commands: start stop restart pasue logs

Print all container names:

docker ps --format ‘{{.Names}}

Print all container images:

docker ps --format ‘{{.Image}}


/etc/rc.d/rc.nginx <command>

Available commands: start stop restart status


/etc/rc.d/rc.php-fpm <command>

Available commands: start stop restart status

VM Service

/etc/rc.d/rc.libvirt <command>

Available commands: start stop

List all domains:

virsh list --all


virsh <command> <domain>

Available commands: start shutdown reboot suspend


/etc/rd.d/rc.samba <command>

Available commands: start stop




Available commands: reboot poweroff shutdown


poweroff will gracefully shut everything down, even spin down the hard drives, but will not actually turn off the power supply.But there is a race condition in the code which could cause the system to power off before the Flash is updated indicating 'clean shutdown'. This can't cause data loss, but will cause parity-check to automatically start upon next reboot.

Run diagnostics


Tail the syslog

tail -f /var/log/syslog

Look at the parameters in the config file

nano /boot/syslinux.cfg-

Create a backup image of your usb and store it on disk1

dd if=/dev/sda of=/mnt/disk1/unraid.img

Copy files using midnight commander


Check power on hours for all drives

for drive in $(ls -la /dev | grep -Ev 'sda|sd[a-z][0-9]' | grep sd[a-z] | awk '{print $10}'); do hours=$(smartctl --all /dev/${drive} | grep Power_On_Hours | awk '{print $10}'); echo "Power on Hours for ${drive}: ${hours}"; echo ''; done

Last update: February 10, 2020