Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

flk export

Builds a container image of a profile, or writes the parsed config as JSON.

flk export --format docker
flk export --format podman
flk export --format json
flk export --format docker --profile backend

Options

  • -f, --format <FORMAT>: docker, podman or json (required)
  • -p, --profile <PROFILE>: profile to export

Formats

Docker

Runs nix build .#docker-<profile> --impure --no-link (no GC root is left behind) and loads the image with docker load. Docker must be running.

Podman

Same, with .#podman-<profile> and podman load.

JSON

Writes inputs and all profiles to flake.json in the project root.