docker_practice/coreos/install.md

53 lines
1.0 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# Fedora CoreOS
## ISO
[](https://getfedora.org/coreos/download/) `Bare Metal & Virtualized` 标签页下载 ISO。
## FCC
FCC Fedora CoreOS Configuration Fedora CoreOS
```yaml
# example.fcc
variant: fcos
version: 1.0.0
passwd:
users:
- name: core
ssh_authorized_keys:
- ssh-rsa AAAA...
```
`ssh-rsa AAAA...` SSH `~/.ssh/id_rsa.pub`
## FCC Ignition
```bash
$ docker run -i --rm quay.io/coreos/fcct:v0.5.0 --pretty --strict < example.fcc > example.ign
```
## ISO
> 3GB
```bash
$ sudo coreos-installer install /dev/sda --ignition-file example.ign
```
使
## 使
```bash
$ ssh core@虚拟机IP
$ docker --version
```
##
* [](https://docs.fedoraproject.org/en-US/fedora-coreos/bare-metal/)