Vmware workstation下安装体验Fedora Atomic 29与docker应用部署

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.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值