1

Photon 容器配置

 1 year ago
source link: https://blog.51cto.com/waringid/5890525
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

photon 是 vmware 定制化的容器基础系统,目前版本是4.0。

相比其他的宿主机,该系统是基于 CentOS 平台精简定制。该容器可以直接部署在物理服务器。

下载地址可以访问下面:​ ​https://vmware.github.io/photon/docs/installation-guide/downloading-photon/​​。提供不同版本

Photon 容器配置_容器

2.SSH 配置

默认情况下 SSH 不支持 root 用户登录,需要修改对应的配置文件

Photon 容器配置_容器_02

3.网络配置

和 CentOS 7 所在的文件位置有些区别

cat > /etc/systemd/network/99-static-en.network << EOF
[Match]
Name=eth0

[Network]
Address=192.168.113.114/24
Gateway=192.168.113.1
DNS=119.29.29.29
EOF

chmod 644 99-static-en.network
systemctl restart systemd-networkd

4.系统更新

tdnf -y update

5.防火墙

/etc/systemd/scripts/ip4save
systemctl restart iptables
Photon 容器配置_vmware_03

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK