Skip to content
This is the documentation for v0.3. Read the latest.

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 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 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.
dicer rmiDelete one or more unused images.
dicer runCreate an instance from an image and start it.
dicer startStart one or more defined instances.
dicer stopStop one or more running instances, keeping their definitions and disks.
dicer updateChange a stopped instance’s definition.
dicer waitWait until one or more instances stop, and print their exit codes.

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 volumeManage volumes.

System commands

CommandDescription
dicer eventsShow what has happened to the instances and images 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).
--timeout durationGive up on a 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.