托管说明不清楚 - 是否可以在没有 sudo 的情况下安装在租用的网络托管上?

Hi, its been a long time since I tried to setup anything like this (used to setup things like PHPNuke and whatnot back in the day), a bit of looking around and it seems Discourse is one of the better forum platforms around.

The instructions for installing this are super unclear to me, and I’m not even sure I can install it on the rented webhosting because it seems to require sudo/root which I do not have… is this accurate?

(renting webhosting from NFOServers.com) I’m connecting to the webhosting via Putty
SSH.

Can anyone tell me if this is a thing or not, and if so point me to where I can find a bit more detailed instructions for my scenario (rather than hosting on my own linux machne…?).

Thanks!

You need root privileges and to be able to install docker. I haven’t read the docs lately, but I thought that was clear.

If not, how could they be more clear?

3 个赞

为什么会这样?没有技术原因需要root访问权限。难道不能像平常一样使用docker compose文件或类似的东西吗?这破坏了与任何企业环境以及podman和Kubernetes等解决方案的兼容性。

容器的优点在于它们易于部署,因为它们以标准格式打包,无需依赖供应商特定的外部工具,而这正是这里发生的情况。开发人员通过提供支持工具来关心让系统管理员尽可能轻松,但强制使用它反而使他们的任务更加困难。

DockerHub上的Bitnami镜像下载量是两倍。我想知道这是因为它们打包正确(每个服务一个容器,而不是将多个服务捆绑在一个不透明的容器中)并且可以使用compose文件运行。

不容易。请参阅 Can Discourse ship frequent Docker images that do not need to be bootstrapped?

一种解释是,项目开始时 docker-compose 并不真正可行,所以他们开发了自己的启动器。这是他们用于托管的方式,没有理由改变它。安装文档对那些对系统管理一无所知的人来说效果惊人。

我猜是的。而且它们似乎对很多人都有效,但如果你是那些人中的一员,并且出了问题,你在这里得不到(太多)帮助,因为这不是大家所了解的。我不清楚(至少对我来说)他们可以在其他地方获得什么样的支持,但通常会有这样的交流:“要解决那个问题,只需做 X”,然后是“我不能做 X,因为我使用 bitnami,不知道如何做”。

话虽如此,我已经开始着手创建与支持的镜像非常相似但可以使用 docker compose 和类似工具部署的镜像。我最近考虑过让它们与 bitnami 镜像尽可能兼容,这样就可以轻松地在它们之间切换。我目前拥有的东西还没有准备好供任何人使用,因为我还在更改东西;我不确定这需要几个月还是几年。

2 个赞

感谢 Jay,感谢您在如此旧的讨论中迅速回复并提供了有趣的链接。

我尝试过 bitnami 镜像,但存在一些错误,当我读到他们根本不看问题时,我停止了报告。这就是为什么我更愿意使用官方支持的设置,甚至为此做出贡献,就像我经常为其他开源项目所做的那样。如果您能分享您正在开发的 Docker 设置,并且认为可以公开讨论和贡献,我很乐意进行测试和贡献。