Docker

Suggestions for features and software you would like to see in DietPi, goes here.
Post Reply
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Docker

Post by johnvick »

Hi Fourdee,

Is this possible under DietPi? I would like to run a Kodi headless server along these lines, on the XU4. Docker would seem to be the easiest way to achieve this.

https://libraries.io/github/wernerb/docker-xbmc-server

John
User avatar
Fourdee
Site Admin
Posts: 2787
Joined: Tue Feb 06, 2007 1:36 pm

Re: Docker

Post by Fourdee »

johnvick wrote:Hi Fourdee,

Is this possible under DietPi? I would like to run a Kodi headless server along these lines, on the XU4. Docker would seem to be the easiest way to achieve this.

https://libraries.io/github/wernerb/docker-xbmc-server

John
Hi John,

I have no idea. Never really played with Docker.

If i remember correctly, Docker requires the host system to have it enabled in Kernel. I'am not sure if the XU4 image has this integrated.
It might be worth posting on the Odroid forum: http://forum.odroid.com/viewtopic.php?f ... 42#p114709. As the DietPi image is built on Meveric's image, and he maintains the kernel, probably the best place to ask.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
leoyuholo
Posts: 1
Joined: Thu Feb 16, 2017 2:10 am

Re: Docker

Post by leoyuholo »

Hi John and Fourdee,

I run into the same issue and found dietpi on raspberry pi 3 model b has docker support, just one more step than regular raspbian jessie.

Since the script from get.docker.com makes an assumption on lsb_release command existence and dietpi missing lsb_release, running the script will give a confusing error message of missing AUFS. To solve this, we just need to get lsb_release package, and run the script again.

Code: Select all

apt-get install lsb-release
curl -sSL https://get.docker.com | sh
And run hello-world

Code: Select all

docker run armv7/armhf-ubuntu_core /bin/echo 'Hello world'
It's a massive boost to have docker available on dietpi.

Leo

edited: fix typo, lsb_release should be lsb-release (hyphen instead of underscore)
gimliaaa

Re: Docker

Post by gimliaaa »

Just installed docker on my xu4.
Everything ok.
Now ready for deploy containers, such as pyload and portainer.
It seems to be very good!!.
Last edited by gimliaaa on Thu Apr 06, 2017 3:27 pm, edited 1 time in total.
gimliaaa

Re: Docker

Post by gimliaaa »

Not necessary to have in compiled in kernel.

Latest script to install it at https://get.docker.com installs all dependencies

Fourdee probably next configurations, automations and new software in dietpi would be easier to deploy using docker.
Should read about it, i´m sure you can use many of its features to this wonderful project

Fourdee wrote:
johnvick wrote:Hi Fourdee,

Is this possible under DietPi? I would like to run a Kodi headless server along these lines, on the XU4. Docker would seem to be the easiest way to achieve this.

https://libraries.io/github/wernerb/docker-xbmc-server

John
Hi John,

I have no idea. Never really played with Docker.

If i remember correctly, Docker requires the host system to have it enabled in Kernel. I'am not sure if the XU4 image has this integrated.
It might be worth posting on the Odroid forum: http://forum.odroid.com/viewtopic.php?f ... 42#p114709. As the DietPi image is built on Meveric's image, and he maintains the kernel, probably the best place to ask.
User avatar
Fourdee
Site Admin
Posts: 2787
Joined: Tue Feb 06, 2007 1:36 pm

Re: Docker

Post by Fourdee »

gimliaaa wrote:Not necessary to have in compiled in kernel.

Latest script to install it at https://get.docker.com installs all dependencies

Fourdee probably next configurations, automations and new software in dietpi would be easier to deploy using docker.
Should read about it, i´m sure you can use many of its features to this wonderful project
Thanks for the info, i'll take a look. See if we can dietpi-software it :)

Containers are not really my thing, prefer to have everything run raw native. But Docker does interest me.
https://github.com/Fourdee/DietPi/issues/870
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
gimliaaa

Re: Docker

Post by gimliaaa »

Docker is native. it is not a virtualization system. Is like a "chroot" with an interface for configure an do too much things.
i user dockerized portainer https://github.com/portainer/portainer to manage my docker containers.

There is a minimal image called alpine to build light containers.
Post Reply