Is it possible to have Docker running alongside Yunhost?

My YunoHost server

Hardware: Kimsufi KS1 server
YunoHost version: 3.8.4.8
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If yes, please explain:

Description of my issue

So Yunohost doesn’t have all the apps I want, so I want to try installing Docker on this box that already has Yunohost.

I’m following these instructions: https://docs.docker.com/engine/install/debian/

When I’m trying to run this command:

sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/debian \
   $(lsb_release -cs) \
   stable"

I get this error:

Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 95, in <module>
    sp = SoftwareProperties(options=options)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)    
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_sources
    (self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for YunoHost/stretch

Hmpf I guess that’s because we override the vendor name in dpkg config ~_~

The easiest workaround is to replace your add-apt-repository command with something like :

echo deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs stable > /etc/apt/sources.list.d/docker.list

(In fact I kind of wonder what this command does more than just this…)

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.