Installing Docker on TencentOS
TencentOS Server(又名 Tencent Linux,简称 TS 或 tlinux)是腾讯针对云的场景研发的 Linux 操作系统,提供特定的功能及性能优化,为云服务器实例中的应用程序提供高性能及更加安全可靠的运行环境。TencentOS Server 提供免费使用,在 CentOS(及其他发行版)上开发的应用程序可直接在 TencentOS Server 上运行,用户还可持续获得腾讯云团队的更新维护和技术支持。
…
TencentOS Server 环境说明
用户态环境
TencentOS Server 2用户态软件包保持与最新版 CentOS 7兼容,即 CentOS 7版本的软件包可以直接在 TencentOS Server 2.4 中使用。
TencentOS Server 3用户态软件包保持与最新版 RHEL 8兼容,即 RHEL 8版本的软件包可以直接在 TencentOS Server 3.1 中使用。
…
增加适用于云场景的新特性、改进内核性能并修复重大缺陷,针对容器场景进行优化,提供了隔离增强和性能优化特性,所以建议使用TencentOS部署Docter。
因为买了个服务器,看到有个没用过的TencentOS想试试,结果发现直接用官方的脚本docker死活装不上去,又找不到解决的办法,因此写下这篇文章记录。
支持一下TencentOS,但是用户社区太小了,希望更多人用增大社区用户量吧。
安装所需软件包
1 | |
添加docker官方的安装源
1 | |
将docker-ce.repo改为下面这样,一般只用得上stable,所以就改stable的部分,其他都删了。
1 | |
最后安装并启动docker
1 | |
TencentOS Server (also known as Tencent Linux, abbreviated as TS or tlinux) is a Linux operating system developed by Tencent for cloud scenarios. It provides specific features and performance optimizations, offering a high-performance and more secure and reliable runtime environment for applications in cloud server instances. TencentOS Server is available for free. Applications developed on CentOS (and other distributions) can run directly on TencentOS Server, and users can also receive continuous updates, maintenance, and technical support from the Tencent Cloud team.
…
TencentOS Server Environment Specifications
User Environment
TencentOS Server 2 user-space software packages remain compatible with the latest version of CentOS 7, meaning that CentOS 7 software packages can be used directly in TencentOS Server 2.4.
TencentOS Server 3 user-space software packages remain compatible with the latest version of RHEL 8, meaning that RHEL 8 software packages can be used directly in TencentOS Server 3.1.
…
Full introduction can be found in the official documentation
TencentOS adds new features suitable for cloud scenarios, improves kernel performance, fixes major defects, optimizes for container scenarios, and provides isolation enhancements and performance optimization features, so it is recommended to use TencentOS for deploying Docker.
I bought a server and saw an unused TencentOS, so I wanted to try it, but found that using the official Docker installation script just wouldn’t work, and I couldn’t find a solution. So, I wrote this article to document the process.
Let’s support TencentOS, but its user community is still small; I hope more people use it to grow the community.
Install required packages:
1 | |
Add Docker’s official installation source:
1 | |
Change the docker-ce.repo file to the following (usually only the stable repository is needed, so modify only the stable part and delete the rest):
1 | |
Finally, install and start Docker:
1 | |