From 1b79fa4881c62375432ee59bc9037384c59e3e47 Mon Sep 17 00:00:00 2001 From: Rivulet Date: Fri, 20 Feb 2026 23:44:39 +0000 Subject: [PATCH] Update containers_examples.lua add docs for containers --- containers_examples.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/containers_examples.lua b/containers_examples.lua index e69de29..6cb104c 100644 --- a/containers_examples.lua +++ b/containers_examples.lua @@ -0,0 +1,10 @@ +local containers = require("containers") + + +--To create a container use the getENV(fspath, has_http) function +--the first argument is the path for the file system the second is an optional argument that when provided with true enables http +local env = containers.getENV("/containerfs") + +--To run the created container you call the start(env) +--This will start the container and block on it you can put this in a function like parrallel.waitForAll() +containers.start(env) \ No newline at end of file