service

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package service implements `dockercmd --install-service` and friends: it installs Docker Commander as a background service for the current OS so the monitor, alert engine and metric history keep running without a browser.

Linux installs the hardened systemd unit (the same one in deploy/, embedded here and kept identical by a test); macOS installs a per-user launchd LaunchAgent. Windows is not supported here yet — use deploy/install-windows.ps1.

The OS-specific Install/Uninstall/Status live in service_{linux,darwin}.go; this file holds the embedded templates and small shared helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(w io.Writer) error

Install sets Docker Commander up as a systemd service: it copies the binary to a stable path, creates a dedicated unprivileged user in the docker group, writes the hardened unit, and enables + starts it. Requires root.

func Status

func Status(w io.Writer) error

Status prints `systemctl status` for the service.

func Uninstall

func Uninstall(w io.Writer) error

Uninstall stops and removes the systemd service. The data dir and the service user are left in place so reinstalling keeps the database and keys.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL