我可以在cPanel上安装Docker吗? [英] Can I Install Docker Over cPanel?

查看:129
本文介绍了我可以在cPanel上安装Docker吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在预装有cPanel和CentOS 7的服务器上安装Docker吗?由于我不了解Docker,因此无法完全确定它是否会与cPanel混淆。我已经有一台配置了CentOS 7和cPanel的服务器。我想知道是否可以通过我提到的这种配置安装Docker而不会弄乱吗?

Can I install Docker over a server with pre-installed cPanel and CentOS 7? Since I am not aware of Docker, I am not completely sure whether it will mess with cPanel or not. I already have a server with CentOS 7 and cPanel configured. I want to know if I can install Docker over this configuration I mentioned without messing up?

推荐答案

是的,您可以通过cPanel安装Docker / WHM就像将其安装在任何其他CentOS服务器/虚拟机上一样。

Yes you can install docker over cPanel/WHM just like installing it on any other CentOS server/virtual machine.

只需遵循以下简单步骤(以root用户身份):

Just follow these simple steps (as root):

1) yum install -y yum-utils device-mapper-persistent-data lvm2 (these should be already installed...)
2) yum-config-manager --add-repo    https://download.docker.com/linux/centos/docker-ce.repo
3) yum install docker-ce
4) enable docker at boot (systemctl enable docker)
5) start docker service (systemctl start docker)

以上指南适用于CentOS7.x。不要期望在WHM界面中找到与Docker相关的任何参考或选项。您将能够从SSH shell通过命令行控制Docker。

The guide above is for CentOS 7.x. Don't expect to find any references or options related to Docker in the WHM interface. You will be able to control docker via command line from a SSH shell.

我的cPanel / WHM服务器上已经运行了一些Docker容器,但它们没有问题。我基本上将它们用于缓存,代理和其他类似的东西。

I have some docker containers already running on my cPanel/WHM server and I have no issues with them. I basically use them for caching, proxying and other similar stuff.

只要遵循这些说明,就不会弄乱任何cPanel / WHM服务/设置或当前的cPanel帐户/设置/站点/电子邮件等。

And as long as you follow these instructions, you won't mess-up any of your cPanel/WHM services/settings or current cPanel accounts/settings/sites/emails etc.

不确定您为什么还没有尝试过!

Not sure why you haven't tried this already!

这篇关于我可以在cPanel上安装Docker吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆