在Arch Linux上使用Makepkg
在Arch Linux上使用Makepkg可以避免系统污染,确保仅安装必要的依赖关系。
Rancher是一个用于运行容器和构建私有容器服务的开源平台。Rancher基于Docker,因此您可以在专用盒,KVM机器甚至LXC容器上运行它。Rancher提供了一个庞大的应用程序库,只需单击几次即可安装,并且还支持Dockerhub中的Docker映像。
如前所述,运行Rancher需要Docker,因此我们将首先安装它。
首先,如有必要,请删除所有旧的Docker文件。
sudo apt-get remove docker docker-engine docker.io
注意:您可能会得到一份报告,未安装Docker文件。这是可以忽略的。
更新软件包列表。
sudo apt-get update
允许apt在之上使用存储库HTTPS。
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
添加官方GPG密钥。
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
通过搜索钥匙指纹的后8位来验证您是否拥有钥匙。
sudo apt-key fingerprint 0EBFCD88
输出将类似于以下文本。
pub 4096R/0EBFCD88 2017-02-22
Key fingerprint = 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
uid Docker Release (CE deb) <docker@docker.com>
sub 4096R/F273FCD8 2017-02-22
添加一个stable仓库。
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
再次更新软件包列表。
sudo apt-get update
检查可用的Docker CE版本。
apt-cache madison docker-ce
您将看到类似于以下块的输出。
docker-ce | 17.09.1~ce-0~ubuntu | https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages
docker-ce | 17.09.0~ce-0~ubuntu | https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages
docker-ce | 17.06.2~ce-0~ubuntu | https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages
docker-ce | 17.06.1~ce-0~ubuntu | https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages
docker-ce | 17.06.0~ce-0~ubuntu | https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages
docker-ce | 17.03.2~ce-0~ubuntu-xenial | https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages
docker-ce | 17.03.1~ce-0~ubuntu-xenial | https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages
docker-ce | 17.03.0~ce-0~ubuntu-xenial | https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages
追加version-string,(第二列),之后的最新稳定版本=在下面的命令来安装最新版本的泊坞窗CE的。
sudo apt-get install docker-ce=17.09.1~ce-0~ubuntu
注意:您可以安装最新版本的Docker CE,而无需在sudo apt-get install docker-ce命令末尾附加版本,但是在生产环境中,我建议您安装特定版本而不是最新版本。
验证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 機器變磚。閱讀這篇文章以了解更多信息