1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Anyone using Docker for their VPS company?

Discussion in 'Off Topic' started by FeelingPeckish, Aug 30, 2016.

  1. I wonder If anyone has a hosting/server company which uses Docker rather than traditional virtualization? And what would be the pros/cons of both systems for you?
  2. Slavik

    Slavik XenForo Moderator Staff Member

    I think @eva2000 was having fun with docker?
  3. eva2000

    eva2000 Well-Known Member

    Yeah only playing around, wouldn't have the confidence for shared hosting (VPS environment alternative) as level of isolation isn't the same
  4. Some gameserver hostings using it so that's why I wonder. @eva2000 that's exactly what I'm concerned; the isolation. I wonder if it's secure enough for shared/gameserver hosting
  5. eva2000

    eva2000 Well-Known Member

    there's a difference between installing and using docker in a per client vps virtualized environment as opposed to removing vps virtualization and just setting up a dedicated server with docker containers for each client
  6. I don't see any reason why would anyone do the #1? Isn't docker an alternative for vps virtualization?

    I'm using a gameserver webpanel which they just announced now the panel works with Docker. It is still beta tho but I just want to take advantage of this new feature.
  7. Pierce

    Pierce Well-Known Member

    I've been reading about these.

    So far I've learned you need even more skill to run them.

    Docker is more of a container service.

    So you put nginx in one, php in another, mysqld in another and your file storage in another and your mobile app in another and your API in another.

    This way you can roll out new updates without downtime and easy updates...

    You wouldn't quite imagine using vps's like this.

    Each docker as a container runs an almost full linux stack though it can be minimised.
  8. Xon

    Xon Well-Known Member

    The biggest problem with docker is it is a massively moving target, and is the sort of thing you need a large team to manage well. Fitting a webforum in it would be challanging due to the shared persistant state.
    eva2000 and Pierce like this.
  9. I was thinking about Docker only for shared gameserver hosting. And thanks to the webpanel that I mentioned before, does all the thing. So I just have install to webpanel on one of my dedicateds and create gameservers through that panel for each client which will be created on Docker containers. That's the easy part tho. I was just wondering would it be safe this way or not? Safer than or equals to VPS virtualization?
  10. eva2000

    eva2000 Well-Known Member


    just read up on docker issue tracker to get a feel or what could go wrong and decide https://github.com/docker/docker/issues :) At networking level https://github.com/docker/docker/issues?q=is:issue+is:eek:pen+label:group/networking

    example https://github.com/docker/docker/issues/25618
    Last edited: Sep 1, 2016
    FeelingPeckish likes this.
  11. ibnesayeed

    ibnesayeed Well-Known Member

    I was experimenting with Docker for XenForo with different configurations such as:
    • a monolithic image that packs everything including a web server, a data base server, an email server, and whatnot
    • a micro service style setup in which separate images are used for each service and linked together
    The latter is more flexible that allows easy upgrades, independent scaling of services, and easy clustering. To make the deployment easier, Docker Compose can be used. Alternatively, recently introduced Docker Application Bundle (DAB) can also be used.

    A few things that need to be considered include the decision whether the code would be copied inside the image or a volume mounted at run time. The earlier would allow versioning (using image tags) as updates to XF or add-ons are made, but would require building a new image after each change, while the latter would make it easier to make changes in the code base, but keeping parity between local and production environments will have yet another moving part. The other major thing to consider is to not distribute the Docker image with XenForo code in a public repositories. Additionally, it would be better if the XF related configurations can be done externally, without any file changes in the downloaded code, to allow easy updates. One way to achieve this is to use environment variables instead of making changes in the config.php. Also, the the directories that change at run time (such as data and internal-data) should be configured as external volumes, if the code is packaged inside the image.

    I intend to write a detailed guide to run XenForo in Docker, but thinking of a common ground that works for many webmasters is difficult.
    FeelingPeckish likes this.
  12. As I understand, they're secure, right? Sorry I'm not much of a tech guy so I can't say I understand the details. Anyways, thank you for your interests guys. :)
  13. Pierce

    Pierce Well-Known Member

    They are not secure if you don't know what your doing.
    Xon, FeelingPeckish and eva2000 like this.
  14. ibnesayeed

    ibnesayeed Well-Known Member

    Your Software Is Safer In Docker Containers :)
    FeelingPeckish likes this.
  15. Pierce

    Pierce Well-Known Member

Share This Page