Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions crates/kiri/src/daemon/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,8 @@ fn info(engine: &Engine) -> Value {
"DefaultRuntime": "kiri",
"Runtimes": {"kiri": {"path": "kiri-init"}},
"SecurityOptions": ["name=seccomp,profile=builtin", "name=cgroupns"],
// Compose needs it to attach in `up` and `logs -f` (#346).
"SystemTime": time::rfc3339(std::time::SystemTime::now()),
// Not in Docker's /info (the ping's Builder-Version header is), but
// tools print it: the classic builder API, served by builder.rs.
"BuilderVersion": "1",
Expand Down
2 changes: 2 additions & 0 deletions tests/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ done
t socket-mount-reaches-kiri "Kiri" $D run --rm -v "$SOCK:/var/run/docker.sock" docker:cli docker version --format '{{.Server.Platform.Name}}'
t info-os "Kiri" $D info --format '{{.OperatingSystem}}'
t info-cgroup "2" $D info --format '{{.CgroupVersion}}'
# Compose's `up` and `logs -f` read the daemon's time before they attach (#346).
t info-system-time "$(date -u +%Y-%m-%dT)" $D info --format '{{.SystemTime}}'

section "images"
t pull-alpine "alpine:latest" $D pull alpine:latest
Expand Down