niusmallnan 1b004dff3c Add arm64 server support | 6 年之前 | |
---|---|---|
.. | ||
conf | 9 年之前 | |
kexec | 7 年之前 | |
BaseDockerfile.amd64 | 7 年之前 | |
BaseDockerfile.arm64 | 6 年之前 | |
Dockerfile.amd64 | 7 年之前 | |
Dockerfile.arm64 | 6 年之前 | |
README.md | 9 年之前 | |
lay-down-os | 6 年之前 | |
seed-data | 9 年之前 | |
set-disk-partitions | 6 年之前 |
rancher/os
installer containerThe container can be used directly, but there is a wrapper in RancherOS CLI, ros install
, that handles calling things in the right order.
##Basics
When booting from the ISO file RancherOS runs completely from memory. In order to run more containers, and save state between reboots, you need to persist and run from disk.
When booting, RancherOS looks for a device labeled "RANCHER_STATE". If it finds a volume with that labeled the OS will mount the device and use it to store state.
The scripts in this container will create a device labeled RANCHER_STATE and make it bootable. The two supported methods, are generic and amazon-ebs. The approach can be translated to suit different needs.
The generic install type follows these steps:
The amazon-ebs approach follows these steps:
Warning: Using this container directly can be like running with scissors...
# Partition disk without prompting of any sort:
docker run --privileged -it --entrypoint=/scripts/set-disk-partitions rancher/os:<version> <device>
# install
docker run --privileged -it -v /home:/home -v /opt:/opt \
rancher/os:<version> -d <device> -t <install_type> -c <cloud-config file> \
-i /custom/dist/dir \
-f </src/path1:/dst/path1,/src/path2:/dst/path2,/src/path3:/dst/path3>
The installation process requires a cloud config file. It needs to be placed in either /home/rancher/ or /opt/. The installer make use of the user-volumes to facilitate files being available between system containers. -i
and -f
options are, well, optional.
By providing -i
(or DIST
env var) you specify the path to your custom vmlinuz
and initrd
.
-f
allows you to copy arbitrary files to the target root filesystem.
For bugs, questions, comments, corrections, suggestions, etc., open an issue in
rancher/os with a title starting with [os-installer]
.
Or just click here to create a new issue.