在Arch Linux上使用Makepkg
在Arch Linux上使用Makepkg可以避免系统污染,确保仅安装必要的依赖关系。
Docker是一个允许在虚拟容器内部署软件的应用程序。它是用Go编程语言编写的。在本教程中,您将学习如何在Debian 9上安装Docker CE。
Docker CE是“社区版”,适用于开发人员和小型团队。
最低要求为1GB RAM,尽管我建议至少使用2GB RAM。
使用SSH通过Mac上的终端或Windows上的PuTTY连接到服务器。
ssh root@203.1.113.1
203.1.113.1用您的服务器IP 替换“ ”。
系统将提示您键入“ Yes”或“ No”,以将服务器的RSA指纹添加到已知主机列表中。输入“ Yes”并点击“ Enter”。
现在,您已连接为root,因此无需使用sudo。如果您以用户身份连接,则需要sudo执行大多数操作。
在新计算机上,以root用户身份更新apt。
apt-get update
安装软件包以允许apt在之上使用存储库HTTPS。
apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common -y
添加Docker的官方GPG密钥。
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add -
验证密钥指纹等于:9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88。
apt-key fingerprint 0EBFCD88
使用以下命令来设置稳定的存储库。
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable"
apt再次更新。
apt-get update
安装Docker
apt-get install docker-ce -y
如果您不想以root用户身份运行Docker,请创建一个非root用户。
adduser foo
然后,将该用户添加到Docker组。
usermod -aG docker foo
现在重新启动Docker服务。
service docker restart
通过运行hello-world映像来验证是否正确安装了Docker CE 。
docker run hello-world
此命令下载测试图像并在容器中运行它。当容器运行时,它会打印一条这样的消息并退出。
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
9a0669468bf7: Pull complete
Digest: sha256:cf2f6d004a59f7c18ec89df311cf0f6a1c714ec924eebcbfdd759a669b90e711
Status: Downloaded newer image for hello-world:latest
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.
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/
在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 機器變磚。閱讀這篇文章以了解更多信息