docker容器服务器 - centos atomic host

https://blog.inovex.de/docker-a-comparison-of-minimalistic-operating-systems

https://github.com/rvykydal/anaconda-kickstarts/tree/master/atomic

docker实践 http://www.cnblogs.com/hustcat/category/427554.html
https://yeasy.gitbooks.io/docker_practice/content/kubernetes/quickstart.html

1. CoreOS
2. Project Atomic
3. Ubuntu Snappy
4. RancherOS
5. Photon

https://github.com/CentOS/sig-atomic-buildscripts
https://github.com/CentOS/Community-Kickstarts
https://access.redhat.com/blogs/1169563/posts/1318283

http://www.projectatomic.io/docs/compose-your-own-tree/

http://developerblog.redhat.com/2015/01/08/creating-custom-atomic-trees-images-and-installers-part-1
http://developerblog.redhat.com/2015/01/15/creating-custom-atomic-trees-images-and-installers-part-2

/opt/opmgmt/install/pxelinux.cfg/01-78-2b-cb-69-10-f3

label CentOS Atomic Host 7
    MENU DEFAULT
    MENU LABEL CentOS Atomic Host 7 [01:78:2b:cb:69:10:f3]
    KERNEL atomic7/vmlinuz
    APPEND initrd=atomic7/initrd.img ip=dhcp BOOTIF=78:2b:cb:69:10:f3 inst.ks=http://install.localhost/kickstart/78:2b:cb:69:10:f3 ramdisk_size=102400 console=tty1 console=ttyS1,115200

/opt/opmgmt/install/kickstart/78:2b:cb:69:10:f3

#python -c 'import crypt; print(crypt.crypt("123456", "$6$MySalt"))'
rootpw --iscrypted $6$MySalt$e0fnxWlZ3UCN4HnSSx6U7zQGgzX7AlGBfZ75msCser0B2ZPRHBmwZjOVW6Cai/1Ba5f7B5uTsucedaHsEd8W6/
auth --enableshadow --passalgo=sha512

keyboard us
timezone Asia/Shanghai
lang en_US.UTF-8

install
url --url=http://install.localhost/atomic7

bootloader --location=mbr --boot-drive=sda
clearpart --all --initlabel --drives=sda

part /boot --fstype=xfs --ondisk=sda --size=500
part / --fstype=xfs --ondisk=sda --grow
part swap --fstype=swap --ondisk=sda --size=8000

network --bootproto=static --device=78:2b:cb:69:10:f3 --gateway=192.168.48.1 --ip=192.168.48.122 --nameserver=192.168.48.116 --netmask=255.255.255.0 --ipv6=yes --onboot=yes --activate
network --hostname=bjyh-48-122

ostreesetup --nogpg --osname=centos-atomic-host --remote=centos-atomic-host --url=http://yum.localhost/centos/7/atomic/x86_64/repo --ref=centos-atomic-host/7/x86_64/standard

#firewall --disabled
selinux --disabled
firstboot --disabled

#services --disabled=cloud-init,cloud-config,cloud-final,cloud-init-local,docker-storage-setup
services --disabled=NetworkManager
services --enabled=network

reboot

%pre
/usr/sbin/parted -s /dev/sda mklabel gpt
%end

%post
ostree remote delete centos-atomic-host
ostree remote add --set=gpg-verify=false centos-atomic-host http://yum.localhost/centos/7/atomic/x86_64/repo
%end

# centos atomic host仅需要/boot /2个分区,缺少或者多出,安装启动时会报错,swap分区可默认用户centos
默认用户centos

原文地址:https://www.cnblogs.com/liujitao79/p/5076211.html