0. 引用fedora官网上面的一句话:
使用具备不可变特性基础架构部署并扩展您的容器化应用程序
Fedora Atomic 将是您运行 Linux-Docker-Kubernetes(LDK) 应用的最佳平台。
1. 下载64位物理机镜像:
https://getfedora.org/zh_CN/atomic/download/
我这边下载的文件:Fedora-AtomicHost-ostree-x86_64-29-20190414.0.iso
2. vmware安装:
这里和安装普通的linux发行版一样,选择fedora 64系统,其他略过。
3. ssh连接:
Last login: Fri Apr 19 18:40:13 2019 from 192.168.2.1
[root@fedora ~]#
4.查看系统环境:
[root@fedora ~]# uname -a
Linux fedora.atomic01 5.0.7-200.fc29.x86_64 #1 SMP Mon Apr 8 15:40:59 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@fedora ~]# hostnamectl
Static hostname: fedora.atomic01
Icon name: computer-vm
Chassis: vm
Machine ID: 05088de6e4064b2cb1b8e4b703637005
Boot ID: 9284ea63c9b24b0cb0a00e6e6c2d2d5c
Virtualization: vmware
Operating System: Fedora 29.20190414.0 (Atomic Host)
CPE OS Name: cpe:/o:fedoraproject:fedora:29
Kernel: Linux 5.0.7-200.fc29.x86_64
Architecture: x86-64
[root@fedora ~]#
5. 系统中docker已经安装了,查看下版本:
[root@fedora ~]# docker version
Client:
Version: 1.13.1
API version: 1.26
Package version: docker-1.13.1-66.git1185cfd.fc29.x86_64
Go version: go1.11.5
Git commit: 1185cfd/1.13.1
Built: Mon Mar 18 13:59:32 2019
OS/Arch: linux/amd64
Server:
Version: 1.13.1
API version: 1.26 (minimum version 1.12)
Package version: docker-1.13.1-66.git1185cfd.fc29.x86_64
Go version: go1.11.5
Git commit: 1185cfd/1.13.1
Built: Mon Mar 18 13:59:32 2019
OS/Arch: linux/amd64
Experimental: false
6. 操作docker,这里下载redis试试:
docker images
docker pull redis
docker run -d -p 6379:6379 --name redis redis
docker ps
7. 发现没有vim,安装vim:
rpm-ostree install vim
ps: 其他命令, atomic, rpm-ostree, ostree等。
[root@fedora ~]# rpm-ostree status
State: idle
AutomaticUpdates: disabled
Deployments:
● ostree://fedora-atomic:fedora/29/x86_64/atomic-host
Version: 29.20190414.0 (2019-04-14T01:45:28Z)
BaseCommit: 3fa99cde65f41035e0a912643b64251cc84eec8fedd53ca42df2c4857d569639
GPGSignature: Valid signature by 5A03B4DD8254ECA02FDA1637A20AA56B429476B4
LayeredPackages: vim vim-common
ostree://fedora-atomic:fedora/29/x86_64/atomic-host
Version: 29.20190414.0 (2019-04-14T01:45:28Z)
Commit: 3fa99cde65f41035e0a912643b64251cc84eec8fedd53ca42df2c4857d569639
GPGSignature: Valid signature by 5A03B4DD8254ECA02FDA1637A20AA56B429476B4
[root@fedora ~]# rpm-ostree upgrade
1 metadata, 0 content objects fetched; 569 B transferred in 9 seconds
Checking out tree 3fa99cd... done
Enabled rpm-md repositories: updates fedora
rpm-md repo 'updates' (cached); generated: 2019-04-16T03:49:16Z
rpm-md repo 'fedora' (cached); generated: 2018-10-24T22:20:15Z
Importing rpm-md... done
Resolving dependencies... done
No upgrade available.