Running docker registry on truenas scale error 404 err.message="manifest unknown"

etherion

Cadet
Joined
Jul 13, 2023
Messages
6
I have added the docker registry app to my TrueNas Sacle. Its running but i see clients just get this error 404 err.message="manifest unknown" when they try to get pull an image. I have tried edit extra EV as follows. also try leaving it blank. but the same problem. any suggestion why?

1689247707683.png

to when i shell i can see there is not urnal for https://registry-1.docker.io as I would expect

1689246569413.png


1689246846059.png


1689246897169.png
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
OK, so point 1, this is a TrueCharts Incubator app, so:

It's not guaranteed to be working as it's in the Incubator train

Support for thier apps is via their discord... they won't help to solve issues with their apps here in this forum.

I don't know if I fully understand what the problem here is other than environment variables not correctly assigning into the container... is that it?
 

etherion

Cadet
Joined
Jul 13, 2023
Messages
6
The problem is that it's not setting up as a pull though cache. The config file needs a sections at the end where it defines the proxy server. But I can't find away to edit it and add it.

i have used code server to make new file cat /etc/docker/registry/config.yml and addedd the content

proxy:
remoteurl: https://registry-1.docker.io
username: [username]
password: [password]

But some reason that does not presistance between restarts.

It there away to fork the app so I can modify it?
 

etherion

Cadet
Joined
Jul 13, 2023
Messages
6
Here is the /etc/docker/registry/config.yml

I need to find away to add

proxy:
remoteurl: https://registry-1.docker.io
username: [username]
password: [password]

Then it will act as a mirror
 

Attachments

  • image-9.png
    image-9.png
    31.8 KB · Views: 64

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
OK, so I put a file called config.yml in a directory on my TrueNAS host and put the contents needed in that file.

Then I edited the app to add "Additional App Storage" in the Storage and Persistence section.

I set the Host path type, then set the host path to that directory I created and set the mount path to /etc/docker/registry.

Started the app and logs now say:
2023-07-14 12:01:36.089443+00:00time="2023-07-14T12:01:36.08930899Z" level=info msg="Registry configured as a proxy cache to https://registry-1.docker.io" go.version=go1.16.15 instance.id=e24a514d-a760-4bae-8b7c-0ecf297b45ed service=registry version="v2.8.1+unknown"

Looks like what you wanted.
 
Top