You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Update container image prefix from docker to oci (#488)
- Changed `container_image` prefix from `docker://` to `oci:` in multiple documentation files to reflect the new image pulling method.
- This change ensures compatibility with OCI standards and improves the image retrieval process.
Signed-off-by: Itxaka <itxaka@kairos.io>
You can see some example of builds in either the [kairos-init repo](https://github.com/kairos-io/kairos-init/blob/main/.github/workflows/test.yml), which builds a series of OCI containers of different base images, variants and platforms or on the [Kairos repo](https://github.com/kairos-io/kairos/tree/master/.github/workflows) itself which generates not only different types of platforms and variants and base images but also generates different types of artifacts, like ISOs, Trusted Boot ISOs, Trusted Boot upgrade artifacts, raw disk images and so on.
Again, this tutorial does not cover this part deeply as there already are docs that provide a deep insight into custom images such as the the [AuroraBoot page]({{< ref "auroraboot.md">}}).
Again, this tutorial does not cover this part deeply as there are docs providing a deep insight onto this like the [AuroraBoot page]({{< ref "auroraboot.md" >}})
{{% tab header="Container Image, with dockerd" %}}
133
133
134
-
By indicating a `container_image` prefixed with `docker://`, AuroraBoot will pull the image from the local daemon and start to serve it for network booting.
134
+
By indicating a `container_image` prefixed with `oci:`, AuroraBoot will pull the image from the local daemon and start to serve it for network booting.
135
135
136
136
This implies that the host has a docker daemon, and we have to give access to its socket with `-v /var/run/docker.sock:/var/run/docker.sock`.
137
137
138
138
```bash
139
139
docker pull {{<oci variant="standard">}}
140
140
# This will use the container image from the host's docker daemon
141
141
docker run --rm -ti -v /var/run/docker.sock:/var/run/docker.sock --net host quay.io/kairos/auroraboot \
| `artifact_version` | Corresponding artifact versions from the Kairos release page (e.g. Kubernetes version included). |
382
-
| `release_version` | Version of the release in GitHub. |
383
-
| `flavor` | The Kairos flavor to use. See [the Kairos support matrix]({{< relref "../reference/image_matrix" >}}) for a list. |
384
-
| `repository` | Github repository to use. This can either be `kairos-io/kairos` or `kairos-io/provider-kairos` for images with `k3s` prior to v2.4.0. |
385
-
| `container_image` | Container image. If prefixed with `docker://` it will try to pull from the local docker daemon. If a `container_image` is specified, `artifact_version`, `flavor` and `release_version` are ignored. |
386
-
| `disable_netboot` | Disable netboot. |
387
-
| `disable_http_server` | Disable http server for serving offline generated ISOs. |
388
-
| `netboot_http_port` | Specify a netboot HTTP port (defaults to `8090`). |
389
-
| `state_dir` | Specify a directory that will be used by auroraboot to download artifacts and reuse the same to cache artifacts. |
390
-
| `listen_addr` | Default http binding port for offline ISO generation. |
391
-
| `cloud_config` | Cloud config path to use for the machines. A URL can be specified, use `-` to pass-by the cloud-config from _STDIN_ |
392
-
| `iso.data` | Defines a path to be embedded into the resulting iso. When booting, the files will be accessible at `/run/initramfs/live` |
393
-
| `netboot.cmdline` | Override the automatically generated cmdline with a custom one to use during netboot. `config_url` and `rootfs` are automatically constructed. A reasonable value can be `netboot.cmdline=rd.neednet=1 ip=dhcp rd.cos.disable netboot install-mode console=tty0` |
| `artifact_version` | Corresponding artifact versions from the Kairos release page (e.g. Kubernetes version included). |
382
+
| `release_version` | Version of the release in GitHub. |
383
+
| `flavor` | The Kairos flavor to use. See [the Kairos support matrix]({{< relref "../reference/image_matrix" >}}) for a list. |
384
+
| `repository` | Github repository to use. This can either be `kairos-io/kairos` or `kairos-io/provider-kairos` for images with `k3s` prior to v2.4.0. |
385
+
| `container_image` | Container image. It will try to pull from the local docker daemon first and fallback to remote if not found. If a `container_image` is specified, `artifact_version`, `flavor` and `release_version` are ignored. |
386
+
| `disable_netboot` | Disable netboot. |
387
+
| `disable_http_server` | Disable http server for serving offline generated ISOs. |
388
+
| `netboot_http_port` | Specify a netboot HTTP port (defaults to `8090`). |
389
+
| `state_dir` | Specify a directory that will be used by auroraboot to download artifacts and reuse the same to cache artifacts. |
390
+
| `listen_addr` | Default http binding port for offline ISO generation. |
391
+
| `cloud_config` | Cloud config path to use for the machines. A URL can be specified, use `-` to pass-by the cloud-config from _STDIN_ |
392
+
| `iso.data` | Defines a path to be embedded into the resulting iso. When booting, the files will be accessible at `/run/initramfs/live` |
393
+
| `netboot.cmdline` | Override the automatically generated cmdline with a custom one to use during netboot. `config_url` and `rootfs` are automatically constructed. A reasonable value can be `netboot.cmdline=rd.neednet=1 ip=dhcp rd.cos.disable netboot install-mode console=tty0` |
394
394
| `disk.state_size` | Set the minimum size (in MB) for the state partition in raw disk images. By default, the state partition is sized to 3 times the size of the current image plus some additional space for system files. Use this option to override the default size if you need to accommodate larger future images. |
395
-
| `disk.efi` | Generate an EFI-compatible raw disk image (suitable for AWS and QEMU). When set to `true`, the image will be created with EFI boot support. |
396
-
| `disk.size` | Set the final size (in MB) of the generated disk image. By default, the image size is calculated based on the actual data size. Use this option to create a larger disk image (e.g. `disk.size=16000` will create a 16GB image). |
397
-
| `disk.bios` | Generate a BIOS-compatible raw disk image. When set to `true`, the image will be created with legacy BIOS boot support instead of EFI. |
398
-
| `disk.vhd` | Generate an Azure-compatible VHD image. When set to `true`, the image will be created in VHD format suitable for Azure cloud platform. |
399
-
| `disk.gce` | Generate a Google Cloud Engine (GCE) compatible image. When set to `true`, the image will be created in a format suitable for Google Cloud Platform. |
395
+
| `disk.efi` | Generate an EFI-compatible raw disk image (suitable for AWS and QEMU). When set to `true`, the image will be created with EFI boot support. |
396
+
| `disk.size` | Set the final size (in MB) of the generated disk image. By default, the image size is calculated based on the actual data size. Use this option to create a larger disk image (e.g. `disk.size=16000` will create a 16GB image). |
397
+
| `disk.bios` | Generate a BIOS-compatible raw disk image. When set to `true`, the image will be created with legacy BIOS boot support instead of EFI. |
398
+
| `disk.vhd` | Generate an Azure-compatible VHD image. When set to `true`, the image will be created in VHD format suitable for Azure cloud platform. |
399
+
| `disk.gce` | Generate a Google Cloud Engine (GCE) compatible image. When set to `true`, the image will be created in a format suitable for Google Cloud Platform. |
400
400
To use the configuration file with AuroraBoot, run AuroraBoot specifying the file or URL of the config as first argument:
401
401
402
402
```bash
@@ -524,7 +524,7 @@ docker run -v "$PWD"/config.yaml:/config.yaml \
524
524
-v "$PWD"/build:/tmp/auroraboot \
525
525
-v /var/run/docker.sock:/var/run/docker.sock \
526
526
--rm -ti quay.io/kairos/auroraboot \
527
-
--set container_image=docker://<IMAGE> \
527
+
--set container_image=oci:<IMAGE> \
528
528
--set "disable_http_server=true" \
529
529
--set "disable_netboot=true" \
530
530
--cloud-config /config.yaml \
@@ -539,7 +539,7 @@ Build the custom ISO with the cloud config:
0 commit comments