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 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 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. |
dicer rmi | Delete one or more unused images. |
dicer run | Create an instance from an image and start it. |
dicer start | Start one or more defined instances. |
dicer stop | Stop one or more running instances, keeping their definitions and disks. |
dicer update | Change a stopped instance’s definition. |
dicer wait | Wait until one or more instances stop, and print their exit codes. |
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 volume | Manage volumes. |
System commands
| Command | Description |
|---|---|
dicer events | Show what has happened to the instances and images 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). |
--timeout duration | Give 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.