Skip to content

Command line

dicer is the command line for dicerd. It talks to the daemon on this host, through its socket, unless --remote names another, or a remote of dicer remote is current: see Remote access. Whoever can use the socket can do anything the daemon can, which is as much as root: run dicer as root, or as a member of the socket’s group.

The common commands are shortcuts for the management commands most used: dicer run is dicer instance run, dicer ps is dicer instance list.

Commands

Common commands

CommandDescription
dicer cpCopy files between this machine and a running instance.
dicer createDefine an instance without starting it.
dicer execRun a command inside a running instance.
dicer forkCreate an instance as a copy of another.
dicer imagesList pulled images.
dicer inspectShow everything about one or more instances.
dicer logsShow an instance’s console output.
dicer pausePause one or more running instances.
dicer psList instances.
dicer pullPull an image and convert it to a bootable disk.
dicer renameRename a stopped instance.
dicer resizeChange a running instance’s vCPUs and memory.
dicer restartStop one or more instances if they are running, then start them.
dicer resumeResume one or more paused instances.
dicer rmDelete one or more instances, or all of them.
dicer rmiDelete one or more unused images, or all of them.
dicer runCreate an instance from an image and start it.
dicer standbyFreeze one or more running instances to disk, freeing their CPU and memory.
dicer startStart one or more defined instances, or resume them from standby.
dicer statsShow what instances use of the host, live.
dicer stopStop one or more running instances, keeping their definitions and disks.
dicer topList the processes running in an instance.
dicer updateChange a stopped or failed instance’s definition.
dicer waitWait until one or more instances stop, or are healthy.

Management commands

CommandDescription
dicer composeRun a project of instances described in a compose file.
dicer imageManage images.
dicer instanceManage instances.
dicer kernelManage guest kernels.
dicer networkManage networks.
dicer remoteManage the daemons this client talks to.
dicer snapshotManage snapshots.
dicer tokenManage the tokens the daemon’s TCP listener accepts.
dicer volumeManage volumes.

System commands

CommandDescription
dicer doctorCheck that the host can run instances, and boot a test instance.
dicer eventsShow what has happened to the instances, snapshots, images, networks, volumes and kernels on the host.
dicer infoShow the daemon, and how much of its host is in use.
dicer versionShow the client’s version, and the daemon’s.

Global flags

FlagDescription
-D, --debugTrace every call to the daemon on stderr (or set $DICER_DEBUG).
-r, --remote stringDaemon to talk to: a remote’s name, or an address (unix:///PATH or HOST:PORT) (default $DICER_REMOTE, then the current remote, then local).
--request-timeout durationGive up on a single call to the daemon after this long, e.g. 30s (0: never; streams such as logs -f and exec are not bounded).

Every command takes them, and -h, --help.

dicer --version prints the version, as dicer version does.