Update containers_examples.lua

add docs for containers
This commit is contained in:
2026-02-20 23:44:39 +00:00
parent 0bb76f2b2b
commit 1b79fa4881

View File

@@ -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)