basic

command
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

README

basic example

Demonstrates the core container lifecycle using auto-detection:

  1. Detect the installed container engine (Docker or Podman).
  2. Pull docker.io/library/busybox:latest.
  3. Create and start a container that runs echo hello from currus.
  4. Read the container logs (if the engine supports it).
  5. Remove the container.

Run

go run ./examples/basic/...

A live Docker or Podman daemon must be reachable on its default socket.

Documentation

Overview

Command basic demonstrates the core container lifecycle: auto-detect the engine, pull an image, create and start a container, read its logs, then clean up.

Usage:

go run ./examples/basic/...

Jump to

Keyboard shortcuts

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