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)
- Go to QNAP APP Center to install Container Station and set up your environment
- Using SSH into NAS and go to NAS Host to edit “/usr/local/container-station/lxc/share/lxc/config/common.con”
Modify string “lxc.mount.auto = cgroup:mixed proc:mixed sys:mixed” into “lxc.mount.auto = proc:mixed sys:mixed”
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
- Go to Container Station > click “Creare” > search for “Ubuntu” with version 16.04 > click “Install”
- Click Advanced Settings, in “Network“, set up “Bridge“ as Network Mode
- Click “Create“
- Using SSH into NAS
- Enter Command into Ubuntu 16.04 Console (This name according to your setting of LUX):
- Install Docker with version 17.09.1, you may refer to below commands (Default account & password: ubuntu/ubuntu):
1234567sudo apt-get updatesudo apt-get install apt-transport-https ca-certificates curl software-properties-common -ycurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"sudo apt-get updatesudo apt-get install docker-ce=17.09.1~ce-0~ubuntu -y