Community Forum

Resolved
0 votes
This thread also has a how-to guide how to install Docker on ClearOS 7.x. Please scroll down for the how-to.

Link to how-to post in this thread.

Hi,

Out of curiosity has anyone already fiddled with docker on ClearOS 7.1 Community?


Edit Saturday, 5 March 2016: Here some information from the Docker site:


https://www.docker.com/sites/all/themes/docker/assets/images/logo.png



What is Docker?


Docker containers wrap up a piece of software in a complete filesystem that contains everything it needs to run: code, runtime, system tools, system libraries – anything you can install on a server. This guarantees that it will always run the same, regardless of the environment it is running in.



How is this different from virtual machines?


Hypervisor:

https://www.docker.com/sites/default/files/what-is-docker-diagram.png


Docker:

https://www.docker.com/sites/default/files/what-is-vm-diagram.png


Edit Monday, 7 March 2016: Note: Docker is coming to ClearOS

Edit Friday, 25 March 2016: The original Docker topic can be found HERE. This was a feature request for ClearVM. I started this topic with the question or someone already had fiddled with Docker on ClearOS Community. Later I started a investigation how to install Docker on ClearOS community you can find this information in this thread. One thing I can say Docker is really awesome!!!
Thursday, March 03 2016, 06:12 PM
Share this post:

Accepted Answer

Monday, March 07 2016, 04:02 PM - #Permalink
Resolved
0 votes
@Marcel

Currently working on planning to get Docker to run on ClearOS and then ClearVM. Here is a projected Roadmap specifically focusing on ClearVM.
https://www.clearvm.com/images/roadmap.jpg

NOTE: We are currently looking to update the ClearVM installer and then the integrations between ClearOS and ClearVM.

Thank you for all you do and your patience as new chapter(s) are opening.
  • Marcel van Leeuwen
    more than a month ago
    Added a guide how to install Docker on ClearOS Community 7.x
The reply is currently minimized Show
Responses (50)
  • Accepted Answer

    Wednesday, July 12 2017, 07:09 PM - #Permalink
    Resolved
    0 votes
    Thanks Nick!

    Also added a link in the first post.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, July 12 2017, 05:23 PM - #Permalink
    Resolved
    0 votes
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, July 12 2017, 02:29 PM - #Permalink
    Resolved
    0 votes
    Jonathan Dumont wrote:

    Hi everyone;

    I try to find the HowTo Docker on ClearOS
    and everything point here
    but I just see a thread of discussion about how it will be great
    and nothing look like a how to
    such as
    yum install docker ...

    so Docker on ClearOS is working or not ?
    which kind of issue is the most common ?
    ...

    Regards!

    Jonathan


    Hi,

    When you to bottom of the page you see a "Load more replies" button. Tick this and you can scroll down to the how-to.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, July 12 2017, 04:39 AM - #Permalink
    Resolved
    0 votes
    Hi everyone;

    I try to find the HowTo Docker on ClearOS
    and everything point here
    but I just see a thread of discussion about how it will be great
    and nothing look like a how to
    such as
    yum install docker ...

    so Docker on ClearOS is working or not ?
    which kind of issue is the most common ?
    ...

    Regards!

    Jonathan
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, May 03 2017, 06:08 PM - #Permalink
    Resolved
    0 votes
    Hi,

    If you go to the bottom of this thread you see a bar with the text "load more replies" tick that bar and you will see the how-to. It's the second post of this thread, but the newest post are displayed first. So that why it's at the bottom. :)
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, May 03 2017, 11:00 AM - #Permalink
    Resolved
    0 votes
    Marcel van Leeuwen wrote:

    This thread also has a how-to guide how to install Docker on ClearOS 7.x. Please scroll down for the how-to.





    Hi, please excuse me if I overlooked it it's very late here in California and I'm probably sleep typing but where is the 'how-to guide how to install Docker on ClearOS'? I've read this post and your other post about Docker many MANY times tonight looking for that guide/link and I can't seem to find it. I want to install ClearOS but I must have Docker comparability also. As interesting as ClearOS seems no Docker is an instant deal breaker for me as pretty much all my work/hobby stuff is exclusively Docker images and Containers. Since it appears that Docker engine has been solved by the fine folks here are there any plans for Docker Compose and Docker Swarm or any other Docker container orchestration?

    Sorry to bother you with such a silly question about the link to the guide, any help/replies would be a huge help.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, April 14 2017, 04:56 PM - #Permalink
    Resolved
    0 votes
    What is the status at the moment of the Docker app? At least I'm hoping it's coming. :)
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 26 2017, 03:01 PM - #Permalink
    Resolved
    0 votes
    T wrote:

    systemd-nspawn is a major part of the future of systemd and I'd love to see a comparison between system resource usage of Docker vs nspawn. This is relevant as ClearOS will often be deployed as a router or a server on a LAN, and routers / servers don't want to be wasting what little grunt they've got on a containerisation system: all that grunt should be available to the services (containers) themselves.


    It looks like I have more research to do!
    The reply is currently minimized Show
  • Accepted Answer

    T
    T
    Offline
    Thursday, January 26 2017, 06:01 AM - #Permalink
    Resolved
    0 votes
    Peter Baldwin wrote:
    T wrote:Using a Container for a process has security advantages (as previously mentioned) but also it makes dependencies much cleaner. Rather than filling up your bare-metal installation with libraries only used by one or two processes, you can set up your bare-metal installation to only run the Containerisation system. Then each container can have the specific libraries it needs to run its process. This way you never have to try to resolve conflicts where Tool A requires Library v0.11 and Tool B requires Library v0.12 and you can't have both installed at the same time. Just put them in separate containers and they won't even know the other exists.
    Though not relevant with Plex or Transmission, a lot of LAMP-based apps have different MySQL/PHP/Python requirements, and we're seeing more "nginx vs Apache" conflicts as well. Containers solve that versioning/conflict problem.
    Fantastic - thanks for providing concrete examples of what I'd mentioned - that makes it easier for people to see real-world advantages and also provides test cases to show progress accomplished by containerisation.


    Marcel van Leeuwen wrote:One thing I have to mention of LXC is that you can give containers a ip address...
    That's the bare necessity for a container, no matter what system is implementing it. It allows the container's firewall to have only the port(s) relevant to its service open, simplifying maintenance.

    systemd-networkd provides host-only, inter-container, and/or LAN-accessible IP address(es) for systemd-nspawn containers.

    systemd-networkd is documented here: https://wiki.archlinux.org/index.php/systemd-networkd

    systemd-nspawn is documented here: https://wiki.archlinux.org/index.php/Systemd-nspawn

    systemd-nspawn is ready to go in RHEL/CentOS/etc. -like systems; here's an example on the latest Fedora 24: https://fedoramagazine.org/container-technologies-fedora-systemd-nspawn/

    systemd-nspawn is also able to run converted Docker containers - something that's important because Docker doesn't like working with systemd particularly when a service relies on starting up multiple containers (eg mySQL and Apache):
    the root cause of the conflict is that the Docker daemon is designed to take over a lot of the functions that systemd also performs for Linux.

    Where this breaks down, however, is when services running as containers depend on other containerized services.

    Systemd allows defining cgroup limits in the initialization files, so that you can define resource profiles for services when they start. With Docker, though, this runs afoul of the client-server model again. The systemd cgroup settings affect only the client; they do not affect the daemon process, where the container is actually running. Instead, each one inherits the cgroup settings of the Docker daemon.

    Docker logs also didn't work with systemd's journald. Logging of container output was local to each container, which would cause all logs to be automatically erased whenever a container was deleted. This was a major failing in the eyes of security auditors.


    Nspawn continues to be something the systemd team are actively growing and improving: systemd-importd "can download container images in tar, raw, qcow2 or dkr formats, and make them available locally in /var/lib/machines, so that they can run as nspawn containers"; can run in user namespace and overlay filesystems; management of CPU shares and other rescources; machinectl pull-tar for downloading prepackaged containers; additional and arbitrarily-named virtual Ethernet links between the host and the container; container-specific private UID/GID range for security and on-demand inter-container networks; mkosi generates a new raw OS image of a fresh distribution installation; GPT/EFI representation improved and containers inherit /etc/resolv.conf; etc. etc.

    systemd-nspawn is a major part of the future of systemd and I'd love to see a comparison between system resource usage of Docker vs nspawn. This is relevant as ClearOS will often be deployed as a router or a server on a LAN, and routers / servers don't want to be wasting what little grunt they've got on a containerisation system: all that grunt should be available to the services (containers) themselves.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 26 2017, 04:11 AM - #Permalink
    Resolved
    0 votes
    Hi Marcel,

    Marcel van Leeuwen wrote:

    I've searched the Docker site and found some documentation on how to build a Docker container. Also found a how-to on Digital Ocean. Which how-to do you use?


    I'm still in the reading and learning stage... wild stuff. A developer over at Tiki Wiki did a proof of concept with Docker and ClearOS. He went as far as creating:

    - A ClearOS Docker app
    - Two apps via Docker containers: Openfire and MariaDB

    The fact the Openfire and MariaDB are running in containers is seamless! I think I'll take a crack at creating a Docker image along with integrating an "official" docker image of some kind.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, January 24 2017, 06:08 PM - #Permalink
    Resolved
    0 votes
    I've searched the Docker site and found some documentation on how to build a Docker container. Also found a how-to on Digital Ocean. Which how-to do you use?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, January 24 2017, 03:07 PM - #Permalink
    Resolved
    0 votes
    Marcel van Leeuwen wrote:

    I'm thinking of apps like SABnzbd, NZBGet, Plex, Autosub, Sonarr, Transmission.


    I'll take a look at SABnzbd and NZBGet.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, January 24 2017, 02:49 PM - #Permalink
    Resolved
    0 votes
    Hey Nick,

    Nick Howitt wrote:

    I have not read up on it, but what are the advantages of running Plex or Transmission in Docker compared to natively (like now)?


    Though not relevant with Plex or Transmission, a lot of LAMP-based apps have different MySQL/PHP/Python requirements, and we're seeing more "nginx vs Apache" conflicts as well. Containers solve that versioning/conflict problem.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, January 24 2017, 01:22 PM - #Permalink
    Resolved
    0 votes
    One thing I have to mention of LXC is that you can give containers a ip address...
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, January 24 2017, 06:20 AM - #Permalink
    Resolved
    0 votes
    Michael Proper wrote:

    Would recommend we take a hard look at all of these before locking a default direction:

    1) Kubernetes - https://kubernetes.io/

    2) Google Container Engine - https://cloud.google.com/container-engine/

    3) Docker - https://www.docker.com/

    Feel free to add to the Tech Talk Agenda if needed.

    Thank you all in advance! :)



    I'm only a bit familiar with Docker and LXC. I tested Proxmox for a while and Proxmox uses LXC for containerisation. unRAID uses Docker. I will checkout the sites you linked.
    The reply is currently minimized Show
  • Accepted Answer

    T
    T
    Offline
    Tuesday, January 24 2017, 12:46 AM - #Permalink
    Resolved
    0 votes
    Michael Proper wrote:Would recommend we take a hard look at all of these before locking a default direction:
    Well this thread is specifically about Docker which is why I think the majority of the focus is (rightly) on Docker here. Using a Container for a process has security advantages (as previously mentioned) but also it makes dependencies much cleaner. Rather than filling up your bare-metal installation with libraries only used by one or two processes, you can set up your bare-metal installation to only run the Containerisation system. Then each container can have the specific libraries it needs to run its process. This way you never have to try to resolve conflicts where Tool A requires Library v0.11 and Tool B requires Library v0.12 and you can't have both installed at the same time. Just put them in separate containers and they won't even know the other exists.

    But if you're willing to consider other (superior) Containerisation technologies, you can't go wrong with systemd-nspawn. It's baked into systemd so is migratable between CentOS, Ubuntu, etc. etc. everything that uses systemd. If /var/lib/machines is ZFS or BTRFS it's trivial to make filesystem snapshots of container states, etc. It's much more mature than Docker and far less complex to set up and use. "Rocket" (or "rkt") is a small, recent tool for interfacing with it, but don't judge nspawn by Rocket: nspawn is the way forward for as long as systemd will reign.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, January 23 2017, 11:44 PM - #Permalink
    Resolved
    0 votes
    Would recommend we take a hard look at all of these before locking a default direction:

    1) Kubernetes - https://kubernetes.io/

    2) Google Container Engine - https://cloud.google.com/container-engine/

    3) Docker - https://www.docker.com/

    Feel free to add to the Tech Talk Agenda if needed.

    Thank you all in advance! :)
    The reply is currently minimized Show
  • Accepted Answer

    Monday, January 23 2017, 05:53 PM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    I have not read up on it, but what are the advantages of running Plex or Transmission in Docker compared to natively (like now)?



    Hi Nick,

    Isolation of the app so a vulnerability in your app while not expose your whole server.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, January 23 2017, 05:14 PM - #Permalink
    Resolved
    0 votes
    I have not read up on it, but what are the advantages of running Plex or Transmission in Docker compared to natively (like now)?
    The reply is currently minimized Show
  • Accepted Answer

    Monday, January 23 2017, 04:52 PM - #Permalink
    Resolved
    0 votes
    Peter Baldwin wrote:

    I'm up for it! Did you have a particular app in mind?


    I'm thinking of apps like SABnzbd, NZBGet, Plex, Autosub, Sonarr, Transmission.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, January 23 2017, 04:37 PM - #Permalink
    Resolved
    0 votes
    Marcel van Leeuwen wrote:
    Interesting idea to create Docker containers for ClearOS specifically. I must say the idea also crossed my mind. Is it a idea collaborate regarding creating Docker containers? I like the idea of creating Docker containers for the ClearOS community. What do you think?


    I'm up for it! Did you have a particular app in mind?
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 19 2017, 07:29 PM - #Permalink
    Resolved
    0 votes
    Peter Baldwin wrote:

    Hi Marcel,

    Marcel van Leeuwen wrote:

    On unRAID Docker is working really well. The config files of the container app are outside of the container. So updating your container is really easy. I'm not sure where you referring to. Updating a docker container is just pull in the new Docker container but I think I don't understand you correctly. :)


    I was looking at Docker from the perspective of creating Docker containers for ClearOS, for example a ZoneMinder app. That will require quite a bit of development to make sure updated containers are created when security updates come along. I can see that security discipline is lacking with many docker images out there.

    From the perspective of having Docker installed and available on ClearOS, that's fairly straightforward. Sorry for the confusion!



    Hi Peter,

    Interesting idea to create Docker containers for ClearOS specifically. I must say the idea also crossed my mind. Is it a idea collaborate regarding creating Docker containers? I like the idea of creating Docker containers for the ClearOS community. What do you think?

    btw no need to apologise. :)
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 19 2017, 03:40 PM - #Permalink
    Resolved
    0 votes
    Hi Marcel,

    Marcel van Leeuwen wrote:

    On unRAID Docker is working really well. The config files of the container app are outside of the container. So updating your container is really easy. I'm not sure where you referring to. Updating a docker container is just pull in the new Docker container but I think I don't understand you correctly. :)


    I was looking at Docker from the perspective of creating Docker containers for ClearOS, for example a ZoneMinder app. That will require quite a bit of development to make sure updated containers are created when security updates come along. I can see that security discipline is lacking with many docker images out there.

    From the perspective of having Docker installed and available on ClearOS, that's fairly straightforward. Sorry for the confusion!
    The reply is currently minimized Show
  • Accepted Answer

    Monday, January 16 2017, 07:21 PM - #Permalink
    Resolved
    0 votes
    On unRAID Docker is working really well. The config files of the container app are outside of the container. So updating your container is really easy. I'm not sure where you referring to. Updating a docker container is just pull in the new Docker container but I think I don't understand you correctly. :)
    The reply is currently minimized Show
  • Accepted Answer

    Monday, January 16 2017, 07:02 PM - #Permalink
    Resolved
    0 votes
    Marcel van Leeuwen wrote:

    Do you have a good feeling to overcome these problems?


    The de facto way to handle updates is to have the target application bundled with a base image (barebones OS). Every time there's an update required in the OS, the base image is updated and the new Docker application image is generated. That's all good, but that process would need to be automated and tested in a sane way.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 11 2017, 05:57 PM - #Permalink
    Resolved
    0 votes
    Do you have a good feeling to overcome these problems?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, January 10 2017, 09:20 PM - #Permalink
    Resolved
    0 votes
    Marcel van Leeuwen wrote:

    Peter, did you had some time to checkout docker?


    Yes I did! It's a nice container solution, but I'm still scratching my head on a good security and update mechanism.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 05 2017, 09:03 PM - #Permalink
    Resolved
    0 votes
    Peter, did you had some time to checkout docker?
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, September 24 2016, 10:58 AM - #Permalink
    Resolved
    0 votes
    Updated "Install Docker on ClearOS 7.x" how-to
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, July 19 2016, 06:07 PM - #Permalink
    Resolved
    0 votes
    Paul wrote:

    Out of interest on Clearos 6.x I have docker installed
    [root@fs1 ~]# docker version
    Client version: 1.7.1
    Client API version: 1.19
    Go version (client): go1.4.2
    Git commit (client): 786b29d/1.7.1
    OS/Arch (client): linux/amd64
    Server version: 1.7.1
    Server API version: 1.19
    Go version (server): go1.4.2
    Git commit (server): 786b29d/1.7.1
    OS/Arch (server): linux/amd64
    [root@fs1 ~]#


    Not really using it for anything yet. Was more to play around with

    [root@fs1 ~]# docker images
    REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
    cantino/huginn latest 6e2872acb625 2 weeks ago 876.8 MB
    ubuntu latest 594b6e305389 7 weeks ago 122 MB
    uifd/ui-for-docker latest f17d9cd5f5a1 11 weeks ago 7.391 MB
    [root@fs1 ~]#


    Thanks for sharing this with us Paul! So it's possible to install Docker on ClearOS 6.x. That is good news for the 6.x users.
    The reply is currently minimized Show
  • Accepted Answer

    Paul
    Paul
    Offline
    Monday, July 18 2016, 11:50 AM - #Permalink
    Resolved
    0 votes
    Out of interest on Clearos 6.x I have docker installed
    [root@fs1 ~]# docker version
    Client version: 1.7.1
    Client API version: 1.19
    Go version (client): go1.4.2
    Git commit (client): 786b29d/1.7.1
    OS/Arch (client): linux/amd64
    Server version: 1.7.1
    Server API version: 1.19
    Go version (server): go1.4.2
    Git commit (server): 786b29d/1.7.1
    OS/Arch (server): linux/amd64
    [root@fs1 ~]#


    Not really using it for anything yet. Was more to play around with

    [root@fs1 ~]# docker images
    REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
    cantino/huginn latest 6e2872acb625 2 weeks ago 876.8 MB
    ubuntu latest 594b6e305389 7 weeks ago 122 MB
    uifd/ui-for-docker latest f17d9cd5f5a1 11 weeks ago 7.391 MB
    [root@fs1 ~]#
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, July 12 2016, 03:43 PM - #Permalink
    Resolved
    0 votes
    Hi Peter, Thanks for the reply!

    I really like to see a faster development but I understand Clearcenter is limited on developers. Also there are of course priorities. So just thumbs up whats you guys are doing.

    The Netify app sounds really interesting! I watch out for that app.

    I sold My Synology boxes and I'm using a unRAID server for the time being. UnRAID is using Docker and kvm. It's working really well. I want to use ClearOS again and I'm investigation if I can use snapRAID for some redundancy on ClearOS. Also like I mentioned in this thread I experiment a bit with Docker on ClearOS. Not sure when i make the move back but maybe this summer vacation is a good timing.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 11 2016, 03:19 PM - #Permalink
    Resolved
    0 votes
    I haven't looked at Docker in quite some time. I'll do another review when we start deploying our new Netify solution (a tool to help manage a local network) later this year.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, July 07 2016, 05:15 PM - #Permalink
    Resolved
    0 votes
    @Peter Balwin, any progress on Docker for ClearOS? I use Docker every day and I can't imagine a server without Docker.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, March 25 2016, 08:59 AM - #Permalink
    Resolved
    0 votes
    Updated post: Installing "Transmission" container. If you have any questions do not heistate to ask!!! See third post of this thread.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, March 25 2016, 07:24 AM - #Permalink
    Resolved
    0 votes
    Added some information to the guide "Install Docker on ClearOS Community 7.2" and updated the starting post.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, March 19 2016, 11:50 AM - #Permalink
    Resolved
    0 votes
    Hi T,

    Thanks for the link to the other thread!

    That thread was posted in ClearVM forums and a feature request. This is about running Docker on ClearOS but as I said I forgot about the Docker thread for ClearVM and it's good to link them!
    The reply is currently minimized Show
  • Accepted Answer

    T
    T
    Offline
    Saturday, March 19 2016, 10:51 AM - #Permalink
    Resolved
    0 votes
    Marcel van Leeuwen wrote:
    T wrote:
    Is this thread mainly a continuation of your original thread on this topic?


    To be honest I forgot about that thread. ;)
    That's a shame. Only two weeks after your last post on that thread you started this one, and yet that thread has great Google results placement already! I'll add a link to it so that some people find this follow-on thread.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 15 2016, 06:50 PM - #Permalink
    Resolved
    0 votes
    T wrote:

    Is this thread mainly a continuation of your original thread on this topic?


    To be honest I forgot about that thread. ;)

    Peter Baldwin wrote:

    Hi Marcel,

    I haven't played around with Docker in quite some time and haven't tried Rocket yet. I was tempted to deploy a Docker-based backend for a new networking monitoring app that is coming to ClearOS, but Docker just felt a little too bleeding edge. I'll have to take another look soon!


    Docker is really awesome or must I say containers are awesome! This is a real cool feature for ClearOS but you devs already agreed on that. :) I Haven't tried Rocket either I had read that Rocket is different from Docker. I'm not sure what the difference are. Google time I guess!!! Oh and I really like to hear your experience when you tried.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 15 2016, 03:12 PM - #Permalink
    Resolved
    0 votes
    Hi Marcel,

    I haven't played around with Docker in quite some time and haven't tried Rocket yet. I was tempted to deploy a Docker-based backend for a new networking monitoring app that is coming to ClearOS, but Docker just felt a little too bleeding edge. I'll have to take another look soon!
    The reply is currently minimized Show
Your Reply