How to install Docker (x86) in QNAP NAS LXC container?

How to install Docker (x86) in QNAP NAS LXC container?

In this tutorial you will learn how to install Docker in QNAP NAS LXC container (Using x86 NAS model as a sample)


 

Installation

  1. Go to QNAP APP Center to install Container Station and set up your environment
  2. Using SSH into NAS and go to NAS Host to edit “/usr/local/container-station/lxc/share/lxc/config/common.conf
    Modify string “lxc.mount.auto = cgroup:mixed proc:mixed sys:mixedinto “lxc.mount.auto = proc:mixed sys:mixed
    Note:
    1. Once you have upgraded Container Station then you may need to follow this step again.
    2. Due to stop cgroup then some parts of LXC container may can not display CPU & RAM status
  3. Go to Container Station > click “Creare” > search for “Ubuntu” with version 16.04 > click Install”
  4. Click Advanced Settings, in Network, set up Bridge as Network Mode
  5. Click Create


  6. Using SSH into NAS
  7. Enter Command into Ubuntu 16.04 Console (This name according to your setting of LUX):

  8. Install Docker with version 17.09.1, you may refer to below commands (Default account & password: ubuntu/ubuntu. For information security considerations, please change your password immediately. Please refer to the Linux command for the change method.):


     

Related posts

4 thoughts on “How to install Docker (x86) in QNAP NAS LXC container?

  1. David

    Hi, is there any specific reason to use Ubuntu 16.04 over Ubuntu 18.04

    1. no, just a quick demo 🙂

  2. Hi,

    “Using SSH into NAS and go to NAS Host to edit “/usr/local/container-station/lxc/share/lxc/config/common.con””

    is missing a f on the end

    should be:

    “Using SSH into NAS and go to NAS Host to edit “/usr/local/container-station/lxc/share/lxc/config/common.conf”

    1. thanks ! already modify it !

Leave a Reply