Creating docker template/using docker without template


chazman88

Recommended Posts

There is a docker (invoice plane) on https://hub.docker.com that I would like to use on my unRAID machine but nobody has created a unRAID template for it.

 

Can somebody give me some information on how I could go about using it? Do I need to create a template and then host on my own GitHub or can I just configure it without having a template at all.

 

If there are any guides/tutorials that would be great.

Thanks

Link to comment

Hey chzman88

 

Here is the template for Codiad

 

docker create --name=codiad -v /etc/localtime:/etc/localtime:ro -v <path to data>:/config -e PGID=<gid> -e PUID=<uid>  -p 80:80 linuxserver/codiad

 

--name = Name of docker

-v = volume mappings (HOST:CONTAINER)

-e = envrionmental variables

-p = port it uses (HOST:CONTAINER)

 

 

Here is some additional info. - http://docs.docker.com/engine/reference/commandline/create/

 

Otherwise if you post a link to the docker that you want to use, I can see if we can convert it over to unRAID.

Link to comment
  • 4 years later...

Can someone help me with this docker on "docker hub?"  https://hub.docker.com/r/galexrt/sinusbot ; essentially the creator has built the install script in a "non-persistent state."  I can install it easily into unRaid but every time I restart the docker in unRaid it blows out all the data in the container like a new install including passwords and settings. I understand the -v parameter passed being as persistent/non-persistent but how can i adjust the docker startup script to remove the "new install."  Or can someone fix this Sinusbot docker and get it into the CA repository vice the dockerhub.  I know this is an old thread... hope someone is listening.

 

Thanks,

Micah

Link to comment

You can set it up so you can install it from the private apps section of community applications like this:

 

Save this xml in a file sinusbot.xml

<?xml version="1.0" encoding="utf-8"?>
<Container>
<Beta>False</Beta>
<Category>HomeAutomation:</Category>
<Date>2020-04-03</Date>
<Changes>
[b]3.APR.2020:[/b]Added[br]
</Changes>
<Support>http://forums.unraid.net</Support>
<Name>sinusbot</Name>
<Description>
sinusbot
</Description>
<Registry>https://hub.docker.com/r/galexrt/sinusbot</Registry>
<GitHub>https://github.com/galexrt/docker-sinusbot</GitHub>
<Repository>quay.io/galexrt/sinusbot:latest</Repository>
<BindTime>true</BindTime>
<Privileged>false</Privileged>
<Networking>
  <Mode>bridge</Mode>
  <Publish>
    <Port>
      <HostPort>8087</HostPort>
      <ContainerPort>8087</ContainerPort>
      <Protocol>tcp</Protocol>
    </Port>
  </Publish>
</Networking>
<Data>
  <Volume>
    <HostDir>/mnt/cache/appdata/sinusbot/data</HostDir>
    <ContainerDir>/sinusbot/data</ContainerDir>
    <Mode>rw</Mode>
  </Volume>
  <Volume>
    <HostDir>/mnt/cache/appdata/sinusbot/scripts</HostDir>
    <ContainerDir>/sinusbot/scripts</ContainerDir>
    <Mode>rw</Mode>
  </Volume>
  <Volume>
    <HostDir>/mnt/cache/appdata/sinusbot/config</HostDir>
    <ContainerDir>/sinusbot/config</ContainerDir>
    <Mode>rw</Mode>
  </Volume>
</Data>
<WebUI>http://[IP]:[PORT:8087]</WebUI>
<Banner>http://i.imgur.com/zXpacAF.png</Banner>
<Icon>http://i.imgur.com/zXpacAF.png</Icon>
</Container>

(If you want the correct icon you need to fix those imgur lines.)

 

Then create a dir for private community apps and copy it there:

mdkir -p /boot/config/plugins/community.applications/private/myrepo
cp sinusbot.xml /boot/config/plugins/community.applications/private/myrepo

Now load the Community Apps tab, go to private apps on the left, and install from there. 

 

Link to comment

Building the private docker app works great.. thanks.  I even built an icon link https:// i.imgur.com/OutvdZx.png ; however I'm still facing the non-persistent environment problem.  Every time the docker is restarted an new copy of the application is installed.  All settings within the application are erased and set to default.  All the passwords for the application are reset and set to default.

 

I believe this is a problem with the creators repository "quay.io/galexrt/sinusbot:latest" for the initial install script but I'm a noob.  Any help in solving this problem would be great.

 

Is there a way to adjust this script or prevent it from pulling upon docker restart?  I'm not sure how to solve this issue.

 

Thanks

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.