Documentation
¶
Overview ¶
image-source is the smallest end-to-end example: pull an image, run it, exec a command, tear it down.
Run:
go run ./examples/image-source
What it does:
- Creates a temp workspace with a minimal devcontainer.json (image: alpine:3.20).
- Brings the container up (auto-pulls the image if missing).
- Execs `whoami` inside the container.
- Tears the container down with --rm.
Click to show internal directories.
Click to hide internal directories.