How to use binary in Docker

  • Hi all,


    I have a Docker Container that requires the binary socat which is located in the /usr/bin folder on OMV.


    I tried just copying the binary to the container but that gives me the error Not Found which trying the run it.


    How can I get the use of socat within the Docker Container (tvheadend)


    TIA

    OMV 6 Lenovo M910q - Intel(R) Core(TM) i5-6500T CPU @ 2.50GHz 16GB RAM

  • Can you provide a link to the docker image and documentation you are using?

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • Can you provide a link to the docker image and documentation you are using?

    Here's Docker Run:



    Here is procedure I followed.

    OMV 6 Lenovo M910q - Intel(R) Core(TM) i5-6500T CPU @ 2.50GHz 16GB RAM

  • Where is socat mentioned in the image documentation?

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • log into the container and install socat as if you would do on a real server



    Code
    docker exec tvhead sh
    apt-get update
    apt-get install socat


    assuming it is debina / ubuntu based. if it is alpine based the last commandis  apk add socat

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • log into the container and install socat as if you would do on a real server

    I get this error:


    sheuBte.jpeg




    EDIT: Worked out what I should have done. But the apt-get fails:


    Code
    root@omv:~# docker exec -it 07fe992e1b2e /bin/sh
    root@omv:/# ls
    app  config    dev          etc   init  libexec  mnt  picons  recordings  run   srv  tmp  var bin  defaults  docker-mods  home  lib   media    opt  proc    root        sbin  sys  usr
    root@omv:/# apt-get
    /bin/sh: apt-get: not found
    root@omv:/#

    OMV 6 Lenovo M910q - Intel(R) Core(TM) i5-6500T CPU @ 2.50GHz 16GB RAM

    Einmal editiert, zuletzt von gregeeh ()

  • May I suggest using this for EPG

    Will take a look, thank you.


    On my old NAS (arm64) I just copied socat into the TvH Container and run this script:


    I used this method as I can pickup FTA TV channels from 3 regions where I live and socat would merge all 3 and remove any duplicates. Script is way overkill but does the job nicely.

    OMV 6 Lenovo M910q - Intel(R) Core(TM) i5-6500T CPU @ 2.50GHz 16GB RAM

  • OK; you docker does not hav a name. but did you try apk add socat?

    To fond out what distro is in the container cat /etc/os-release

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • OK; you docker does not hav a name. but did you try apk add socat?

    To fond out what distro is in the container cat /etc/os-release

    cat /etc/os-release gave file not found.


    However apk add socat worked and install socat. It is working as intended now. Thank you very much. :)

    OMV 6 Lenovo M910q - Intel(R) Core(TM) i5-6500T CPU @ 2.50GHz 16GB RAM

  • gregeeh

    Hat das Label gelöst hinzugefügt.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!