Possibilities to trigger import inside a docker

Hi all,

I am looking for a solution to trigger an import from within a docker container. To be more precise: I am running beets inside a docker container (nightly from linuxserver.io). The config is currently the default from that composition:

plugins: fetchart embedart convert scrub replaygain lastgenre chroma web
directory: /music
library: /config/musiclibrary.blb
art_filename: albumart
threaded: yes
original_date: no
per_disc_numbering: no

convert:
auto: no
ffmpeg: /usr/bin/ffmpeg
opts: -ab 320k -ac 2 -ar 48000
max_bitrate: 320
threads: 1
    
paths:
default: $albumartist/$album%aunique{}/$track - $title
singleton: Non-Album/$artist - $title
comp: Compilations/$album%aunique{}/$track - $title
albumtype_soundtrack: Soundtracks/$album/$track $title 
        
import:
write: yes
copy: no
move: yes
resume: ask
incremental: yes
quiet_fallback: skip
timid: no
log: /config/beet.log

lastgenre:
auto: yes
source: album

embedart:
auto: yes

fetchart:
auto: yes

replaygain:
auto: no

scrub:
auto: yes

replace:
'^\.': _
'[\x00-\x1f]': _
'[<>:"\?\*\|]': _
'[\xE8-\xEB]': e
'[\xEC-\xEF]': i
'[\xE2-\xE6]': a
'[\xF2-\xF6]': o
'[\xF8]': o
'\.$': _
'\s+$': ''

web:
host: 0.0.0.0
port: 8337

I am having another docker container (also a standard from linuxserver.io) from which I am trying to start an import. Both share the same volume, so that file access is not a problem. SSH is not installed on both of them :frowning:

Is there any possibility - like starting the import from the web? Anyone a similar setup that is running?

Thanks for your help and suggestions,
m.

You could map the docker socket as a volume and run commands against it with curl. It’s a bit of a pain though and this gives your container highly priviledged rights to your host and all your containers.