mirror of
https://github.com/docker/docs.git
synced 2026-06-19 07:35:16 +00:00
8eb80439f8
Resolves #25090
16 lines
894 B
HTML
16 lines
894 B
HTML
{{ $image := .Get "image" }}
|
|
{{ $modelDownload := .Get "model-download" | default "false" }}
|
|
{{ $browserUrl := .Get "browserUrl" | default "http://localhost:3030"}}
|
|
|
|
{{ $step1 := printf "1. Start the labspace:\n\n ```console\n $ docker compose -p labspace -f oci://%s up -d\n ```" $image }}
|
|
|
|
{{ if eq $modelDownload "true" }}
|
|
{{ $step1 = printf "%s\n\n > [!NOTE]\n >\n > This lab uses an AI model, which requires [the Docker Model Runner to be enabled](https://docs.docker.com/ai/model-runner/get-started/). The model may take some time to download." $step1 }}
|
|
{{ end }}
|
|
|
|
{{ $step2 := printf "2. Open your browser to [%s](%s)." $browserUrl $browserUrl }}
|
|
|
|
{{ $step3 := "3. When you're done, tear down the labspace:\n\n ```console\n $ docker compose -p labspace down\n ```" }}
|
|
|
|
{{ printf "%s\n\n%s\n\n%s" $step1 $step2 $step3 | .Page.RenderString (dict "display" "block") }}
|