Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Problem converting Dockerfile from DockerHub

Featured Replies

I wrote my own docker file (just wanted to try writing my own), no issues locally, and pushed it up to the DockerHub repository.

 

I tried using CA to download and add my own repo but all I get was: http://tower/Apps/AddContainer?xmlTemplate=default:Fatal%20error:%20escapeshellarg():%20Argument%20exceeds%20the%20allowed%20length%20of%204096%20bytes%20in%20/usr/local/emhttp/plugins/community.applications/include/helpers.php%20on%20line%20474

 

Any idea why? I'm on 6.3.5. This is the command I used to run my image: docker run -v "/pathtomyapponhost:/app" projectname

 

This is what I have for my Dockerfile:

FROM kennethreitz/pipenv

CMD [ "python", "./main.py" ]

VOLUME [ "/app" ] # i need this to access my sqlite db

 

Edited by CyberMew

Whats the dockerhub repository?  IE: I know where it's failing, but have no clue as to why without knowing the repo you're using.

Edited by Squid

  • Author

I have signed out on the browser and tried adding again and got the same error

I have signed out on the browser and tried adding again and got the same error
Hmm. Gimme a bit and I'll do a special build of CA for you. Need more information. It does appear that you're running today's update though
  • Author

Yea it seems I'm already on the latest. I might need to go off soon and won't be around for the next 6-8 hours or so. Let me know what I have to do exactly and I'll let you know the results asap. Thank you for helping!

Once again, another small difference in how 6.3.5 and 6.4 operate.  Look for an update in a couple of minutes.  

 

But, side note since you're trying to add in your own container.  It's impossible for CA to download the dockerfile on a non-automated build, since there is NO reference anywhere to it on the dockerHub page for regular people.  So the template generated is basically blank except for your repository.  Automated builds I can either download the dockerfile or scrape it from the webpage if it can't easily be located, and then put in all of the ports, paths, etc.

52 minutes ago, Squid said:

Automated builds I can either download the dockerfile or scrape it from the webpage if it can't easily be located, and then put in all of the ports, paths, etc.

Would you be willing to share the rough outline of what authors could put in their files to stand the best chance of an automated build working? IOW, what do you scrape and look for to guess at what should be in the unraid template?



Would you be willing to share the rough outline of what authors could put in their files to stand the best chance of an automated build working? IOW, what do you scrape and look for to guess at what should be in the unraid template?


Creating a container etc, I have zero clue. Talk to the lsio guys

Getting the docker file, I scrape the dockerHub page for urls and then see if a docker file exists at the url. If it doesn't then I download the dockerHub page and attempt to scrape the docker file from it. All a big PITA. And only automated builds have any reference to a docker file .

This isn't about templates by authors but rather about CA attempting to create a template where none exists. I figure on automated builds my success rate is about 95%, excluding that it's impossible to figure out any environment variables since those aren't in the docker file at all.
  • Author
9 hours ago, Squid said:

Once again, another small difference in how 6.3.5 and 6.4 operate.  Look for an update in a couple of minutes.  

 

But, side note since you're trying to add in your own container.  It's impossible for CA to download the dockerfile on a non-automated build, since there is NO reference anywhere to it on the dockerHub page for regular people.  So the template generated is basically blank except for your repository.  Automated builds I can either download the dockerfile or scrape it from the webpage if it can't easily be located, and then put in all of the ports, paths, etc.

Sorry for the late reply but thanks it worked! Yea I get what you mean but unfortunately I tried but somehow the Dockerfile wasnt pushed to Dockerhub even after I've linked the accounts on both sides, I'll try to figure it out next time

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.