Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

XBMC/KODI-Headless Docker

Featured Replies

  • Author

i'm running over the command one variable at a time till i find what's throwing it out.

  • Replies 205
  • Views 67.1k
  • Created
  • Last Reply
  • Author

Looks right,  but who knows

 

sudo docker run -d --name=xbmc -–net=host -e MYSQLip:192.168.0.146 -e MYSQLport:3306 -e MYSQLuser:xbmc -e MYSQLpass:xbmc -–privileged -v /appdata/kodi:/root.xbmc sparklyballs/xbmc-headless

flag provided but not defined: -–net

 

I'm pulling this again on my separate docker server outside of unraid.

 

 

 

give this a whirl

 

sudo docker run -e MYSQLip:192.168.0.146 -e MYSQLport:3306 -e MYSQLuser:xbmc -e MYSQLpass:xbmc  -d --name=xbmc -p 8089:8089 --name=xbmc  --privileged -v /appdata/kodi:/root/.xbmc sparklyballs/xbmc-headless

 

 

that should get you up and running.

 

I'll go over the command when the pull is done.

-–net

 

once I posted it here I saw the issue,  deleted hyphens and put them back and things started.

 

So now the million dollar question.  Once running,  what's next

 

  • Author

i think i may have discoverd a major GOTCHA in running my image outside of unraid, the permissions will be all wrong and it won't put in the mysql values, unfortunately i rigged it to be idiot proof and will always put the values in, so you can't manually edit the file.

 

 

there is another way round this but it requires a build again.

 

keep your run command handy, lol.

This is better than what I had before.  Now the url works,  before it failed so this a 100 times farther.  If only I knew why wernerb image doesn't start,  but that isn't really your problem...

 

Using his would let me outside of unraid,  I think.

 

But the again,  won't all this change with helix anyway?

  • Author

i think i may have discoverd a major GOTCHA in running my image outside of unraid, the permissions will be all wrong and it won't put in the mysql values, unfortunately i rigged it to be idiot proof and will always put the values in, so you can't manually edit the file.

 

 

there is another way round this but it requires a build again.

 

keep your run command handy, lol.

 

 

clean up any images/containers we have generated thus far...

 

 

then try this

 

git clone https://github.com/sparklyballs/XBMC-Headless.git

 

or download the zip if you don't have git , from

 

https://github.com/sparklyballs/XBMC-Headless

 

cd into the directory

 

cd XBMC-Headless

 

 

 

 

  • Author

MOST IMPORTANT BIT HERE

 

nano Dockerfile

 

 

remove this block

 

# Configure user nobody to match unRAID's settings

RUN \

usermod -u 99 nobody && \

usermod -g 100 nobody && \

usermod -d /home nobody && \

chown -R nobody:users /home

 

 

 

 

I CAN'T STRESS IMPORTANCE OF TAKING OUT THAT BLOCK

 

 

then for the compile , gonna take an age i'm afraid

 

docker build --rm=true -t sparklyballs/xbmc-headless .

 

 

then all being well, go with the run command that worked before including the variables.

  • Author

I'm running a concurrent build, with the block removed.

 

hopefully can get this working for you.

  • Author

smakovits, my bad, i didn't do a build via the command line with the new variables being added in so i got the command line syntax wrong for variables, the delimiter is = and not : for variables, so the run command should be this instead.

 

 

docker run -e MYSQLip=192.168.0.146 -e MYSQLport=3306 -e MYSQLuser=xbmc -e MYSQLpass=xbmc  -d --name=xbmc -p 8089:8089 --name=xbmc  --privileged -v /appdata/kodi:/root/.xbmc sparklyballs/xbmc-headless

Does Xbmc have the ability to run as a specific user,  like this

 

docker create --name=mariadb -v /etc/localtime:/etc/localtime:ro -v <path to data>:/config -e PGID=<gid> -e PUID=<uid> -p 3306:3306 lonix/mariadb

 

  • Author

Does Xbmc have the ability to run as a specific user,  like this

 

docker create --name=mariadb -v /etc/localtime:/etc/localtime:ro -v <path to data>:/config -e PGID=<gid> -e PUID=<uid> -p 3306:3306 lonix/mariadb

 

 

Not with this particular container, at least not without some rewriting of the Dockerfile.

 

 

no, news about kodi helix version? my openelec box is already on this one. thanks in advance.

Just wanted to say Thank You!  I was using one by wernerb but I like your reduced image size.

The wernerb container allows you to select gotham or helix.  I'm not sure if you've stripped that functionality out sparky

  • Author

The wernerb container allows you to select gotham or helix.  I'm not sure if you've stripped that functionality out sparky

 

werner's helix version is only a branch in github, but as helix isn't final yet i've decided not to go that route yet.

  • Author

The wernerb container allows you to select gotham or helix.  I'm not sure if you've stripped that functionality out sparky

 

werner's helix version is only a branch in github, but as helix isn't final yet i've decided not to go that route yet.

 

Also as now kodi version 15 is now the master branch in kodi git, the experimental branch of werner's container will pull that.

I know i have said this before but I would drop effort on everything but producing a trivial to instal Helix headless. It is all but live and very soon that is what everyone will be running. This that hang out on old versions will be doing so without support since XBMC as an entity will be "old".

 

FYI Helix is for me at least the most stable version ever on both old and new hardware.

  • Author

I know i have said this before but I would drop effort on everything but producing a trivial to instal Helix headless. It is all but live and very soon that is what everyone will be running. This that hang out on old versions will be doing so without support since XBMC as an entity will be "old".

 

FYI Helix is for me at least the most stable version ever on both old and new hardware.

 

I worked on gotham to get a feel for docker and getting the hang of templates and passing variables etc...

 

I'm just piecing together a helix version right now.

Shout if we can help because I think this could be one of the most popular containers here

Shout if we can help because I think this could be one of the most popular containers here

I agree, I've tempted to create a docker based on werner's docker but without success due to lack of time/knowledge. Thank you for your work.

Some of us are stuck on Gotham until our arm based XBMC appliances have an upgrade path.  That's if they ever do get an upgrade path.

  • Author

Shout if we can help because I think this could be one of the most popular containers here

 

It's currently building over on docker hub, it's a long build, so i running it there.

 

it's too early on a saturday morning for this kind of thing (well was when i started, lol) so i expect it to fall over on first build.

Some of us are stuck on Gotham until our arm based XBMC appliances have an upgrade path.  That's if they ever do get an upgrade path.

 

I think a load of people will be in the same boat with essentially EOL support :( But at least you can stick on a known to work docker and leave best alone.

  • Author

I do have a question though, i run a vm for building dockers and i was wondering how i can change the user id of nobody and user to match unraids without borxing everything.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.