Discover Packages
gopherly.dev/currus
examples
basic
command
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Jun 1, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
basic example
Demonstrates the core container lifecycle using auto-detection:
Detect the installed container engine (Docker or Podman).
Pull docker.io/library/busybox:latest.
Create and start a container that runs echo hello from currus.
Read the container logs (if the engine supports it).
Remove the container.
Run
go run ./examples/basic/...
A live Docker or Podman daemon must be reachable on its default socket.
Expand ▾
Collapse ▴
Documentation
¶
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/...
Source Files
¶
Click to show internal directories.
Click to hide internal directories.