在Arch Linux上使用Makepkg
在Arch Linux上使用Makepkg可以避免系统污染,确保仅安装必要的依赖关系。
Rancher是一个用于运行容器和构建私有容器服务的开源平台。Rancher基于Docker,因此您可以在专用盒,KVM机器甚至LXC容器上运行它。Rancher提供了庞大的应用程序库,只需单击几次即可安装,并且还支持Dockerhub中的Docker映像。
如前所述,运行Rancher需要Docker,因此我们将首先安装它。
首先,如有必要,请删除所有旧的Docker文件。
sudo yum remove docker docker-common docker-selinux docker-engine
注意:您可能会得到一份报告,未安装Docker文件。这是可以忽略的。
安装所需的软件包。
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
添加一个stable仓库。
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
检查可用的Docker CE版本。
yum list docker-ce --showduplicates | sort -r
您将看到类似于以下文本的输出。
...
docker-ce.x86_64 17.09.1.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.09.0.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.06.2.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.06.1.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.06.0.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.03.2.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.03.1.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.03.0.ce-1.el7.centos docker-ce-stable
...
您可以仅使用sudo yum install docker-ce命令来安装最新版本的Docker CE ,但是在生产环境中,建议您安装特定版本而不是最新版本。
要指定要安装的Docker CE version-string版本,请在软件包名称后附加最新的稳定版本,(第二列),后跟“ -”,如以下命令所示。
sudo yum install docker-ce-17.09.1.ce-1.el7.centos
启动Docker。
sudo systemctl start docker
验证Docker是否正确安装。
sudo docker run hello-world
此命令在测试容器中运行测试图像以打印消息,然后退出。该消息将类似于以下输出。
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://cloud.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/engine/userguide/
现在我们准备安装Rancher。
sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stable
等待几分钟,以允许Rancher UI引导。然后,打开您喜欢的浏览器并转到8080服务器上的端口。
http://192.0.2.0:8080
确保192.0.2.0用实际服务器的IP地址替换。
Rancher默认情况下不配置访问控制,因此立即进行设置很重要,否则拥有IP的任何人都可以访问UI和API。
将鼠标悬停在ADMIN选项卡上,然后单击Access Control。
按照Rancher UI中的说明设置您喜欢的任何一种访问控制形式。
现在一切都已安装,您可以开始配置Rancher。有关配置和使用Rancher的更多详细信息,请访问其官方文档。
在Arch Linux上使用Makepkg可以避免系统污染,确保仅安装必要的依赖关系。
快速学习如何在Ubuntu 16.04上安装OpenSIPS控制面板,为VoIP提供商提供支持的功能。
学习如何在Fedora 28上安装Akaunting,一款适合小型企业和自由职业者的开源会计软件。
使用其他系统?Mailtrain是一个基于Node.js和MySQL / MariaDB构建的开源自托管新闻通讯应用程序。
了解導致Minecraft延遲的原因和解決方案,包括優化伺服器性能和減少滯後的步驟。
勒索軟件攻擊呈上升趨勢,但人工智能能否幫助應對最新的計算機病毒?AI 是答案嗎?在這裡閱讀知道是 AI 布恩還是禍根
ReactOS,一個開源和免費的操作系統,這裡有最新版本。它能否滿足現代 Windows 用戶的需求並打倒微軟?讓我們更多地了解這種老式但更新的操作系統體驗。
Whatsapp 終於為 Mac 和 Windows 用戶推出了桌面應用程序。現在您可以輕鬆地從 Windows 或 Mac 訪問 Whatsapp。適用於 Windows 8+ 和 Mac OS 10.9+
閱讀本文以了解人工智能如何在小型公司中變得流行,以及它如何增加使它們成長並為競爭對手提供優勢的可能性。
最近,Apple 發布了 macOS Catalina 10.15.4 補充更新以修復問題,但似乎該更新引起了更多問題,導致 mac 機器變磚。閱讀這篇文章以了解更多信息