# Possibilities to trigger import inside a docker

**URL:** <https://discourse.beets.io/t/possibilities-to-trigger-import-inside-a-docker/742>\
**Category:** Help\
**Created:** [May 9, 2019, 10:52am UTC](https://discourse.beets.io/t/possibilities-to-trigger-import-inside-a-docker/742 "2019-05-09T10:52:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kimpenhaus](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/kimpenhaus/32/236_2.png) [@kimpenhaus](https://discourse.beets.io/u/kimpenhaus)\
**Post date:** [May 9, 2019, 10:52am UTC](https://discourse.beets.io/t/possibilities-to-trigger-import-inside-a-docker/742/1 "2019-05-09T10:52:40Z")

</div>

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](http://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](http://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 ☹

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.

---

<div class="post-metadata">

**Author:** ![mheys1](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/mheys1/32/656_2.png) [@mheys1](https://discourse.beets.io/u/mheys1)\
**Post date:** [June 23, 2022, 10:37am UTC](https://discourse.beets.io/t/possibilities-to-trigger-import-inside-a-docker/742/2 "2022-06-23T10:37:37Z")

</div>

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.

> **[Exposed Docker Socket](https://0xn3va.gitbook.io/cheat-sheets/container/escaping/exposed-docker-socket#code-execution-in-a-container)**
