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
| Flag | Description |
|---|---|
--format string | Output format: table, json or yaml. Default: table. |
--host-only | Check only the host, without booting a test instance. |
--hypervisor-type string | Hypervisor to boot the test instance on: cloud-hypervisor or firecracker (default: cloud-hypervisor). |
--hypervisor-version string | Version of the hypervisor (default: the hypervisor’s default version, which dicer info shows). |
--image string | Image of the test instance, which must have sh and wget, as busybox does. Default: docker.io/library/busybox:1.37. |
--keep | Keep a failed test instance for inspection, instead of deleting it. |
--timeout duration | How long the test instance may take to run its command (default: 2m). |
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). |