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
| Command | Description |
|---|---|
dicer cp | Copy files between this machine and a running instance. |
dicer create | Define an instance without starting it. |
dicer exec | Run a command inside a running instance. |
dicer fork | Create an instance as a copy of another. |
dicer images | List pulled images. |
dicer inspect | Show everything about one or more instances. |
dicer logs | Show an instance’s console output. |
dicer pause | Pause one or more running instances. |
dicer ps | List instances. |
dicer pull | Pull an image and convert it to a bootable disk. |
dicer rename | Rename a stopped instance. |
dicer resize | Change a running instance’s vCPUs and memory. |
dicer restart | Stop one or more instances if they are running, then start them. |
dicer resume | Resume one or more paused instances. |
dicer rm | Delete one or more instances, or all of them. |
dicer rmi | Delete one or more unused images, or all of them. |
dicer run | Create an instance from an image and start it. |
dicer standby | Freeze one or more running instances to disk, freeing their CPU and memory. |
dicer start | Start one or more defined instances, or resume them from standby. |
dicer stats | Show what instances use of the host, live. |
dicer stop | Stop one or more running instances, keeping their definitions and disks. |
dicer top | List the processes running in an instance. |
dicer update | Change a stopped or failed instance’s definition. |
dicer wait | Wait until one or more instances stop, or are healthy. |
Management commands
| Command | Description |
|---|---|
dicer compose | Run a project of instances described in a compose file. |
dicer image | Manage images. |
dicer instance | Manage instances. |
dicer kernel | Manage guest kernels. |
dicer network | Manage networks. |
dicer remote | Manage the daemons this client talks to. |
dicer snapshot | Manage snapshots. |
dicer token | Manage the tokens the daemon’s TCP listener accepts. |
dicer volume | Manage volumes. |
System commands
| Command | Description |
|---|---|
dicer doctor | Check that the host can run instances, and boot a test instance. |
dicer events | Show what has happened to the instances, snapshots, images, networks, volumes and kernels on the host. |
dicer info | Show the daemon, and how much of its host is in use. |
dicer version | Show the client’s version, and the daemon’s. |
Global flags
| Flag | Description |
|---|---|
-D, --debug | Trace every call to the daemon on stderr (or set $DICER_DEBUG). |
-r, --remote string | Daemon 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 duration | Give 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.