Skip to content
This is the documentation for main, which is not released yet. Read the latest.

dicer doctor

Checks that the daemon’s host can run instances and that they can be reached: KVM, IPv4 forwarding, the firewall, the tools the daemon needs, the uplink and the free disk space. It then boots a small test instance, checks that the instance can run a command and reach the internet, and deletes it. The test instance boots on cloud-hypervisor, unless --hypervisor-type names another hypervisor.

When a check finds a problem, dicer doctor says what to do about it, where it can. If any check fails, dicer doctor exits with an error. A warning, such as little free disk space, is something that may cause trouble later. Warnings alone do not make it exit with an error.

The test instance’s image is pulled if the host does not have it. On a host that cannot reach Docker Hub, use --image to name another image. Over the TCP listener, booting a test instance needs a token with the instances:write scope. With a token that does not have it, use --host-only.

Usage

$ dicer doctor [flags]

Examples

$ dicer doctor
$ dicer doctor --host-only
$ dicer doctor --hypervisor-type firecracker
$ dicer doctor --image registry.example.com/busybox:1.37

Flags

FlagDescription
--format stringOutput format: table, json or yaml. Default: table.
--host-onlyCheck only the host, without booting a test instance.
--hypervisor-type stringHypervisor to boot the test instance on: cloud-hypervisor or firecracker (default: cloud-hypervisor).
--hypervisor-version stringVersion of the hypervisor (default: the hypervisor’s default version, which dicer info shows).
--image stringImage of the test instance, which must have sh and wget, as busybox does. Default: docker.io/library/busybox:1.37.
--keepKeep a failed test instance for inspection, instead of deleting it.
--timeout durationHow long the test instance may take to run its command (default: 2m).

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).