frakman1 Posted February 4, 2021 Share Posted February 4, 2021 (edited) Support for JFrog Container Registry docker container Application Name: JFrog Container Registry (JCR) Application Site: https://www.jfrog.com/ Docker Hub: JFrog Private Registry: releases-docker.jfrog.io/jfrog/artifactory-jcr:latest Github: N/A (JFrog does not provide one) Github Template: https://github.com/frakman1/docker-templates/blob/master/tynor88/jcr.xml Default credentials: admin/password My template looks like this: Example of usage Login to the WebUI with default credentials (admin/password) and create a Local Docker Repo. Click on Administration -> Repositories in top left: Then Add Repositories -> Local Repository by clicking on the top right button: I called it docker-jcr and left the default settings as is. You'll need to add the JCR server to the list of insecure-registries supported by your local docker installation. On Linux, that is in /etc/docker/daemon.json. On Mac, it is in /Users/username/.docker/daemon.json On Windows, it is in C:\ProgramData\docker\config\daemon.json Add this if it isn't there: { ... "insecure-registries": [ "UNRAID-IP:6182" ], ... } Then from a terminal, I pulled a hello-world repo, tagged it to the new JCR repo and then pushed it to my JCR instance. e.g. $docker login http://UNRAID-IP:6182 Username: admin Password: Login Succeeded $docker pull hello-world Using default tag: latest latest: Pulling from library/hello-world Digest: sha256:31b9c7d48790f0d8c50ab433d9c3b7e17666d6993084c002c2ff1ca09b96391d Status: Image is up to date for hello-world:latest docker.io/library/hello-world:latest $docker images REPOSITORY TAG IMAGE ID CREATED SIZE hello-world latest bf756fb1ae65 13 months ago 13.3kB hello-world linux bf756fb1ae65 13 months ago 13.3kB $docker tag bf756fb1ae65 UNRAID-IP:6182/docker-jcr/hello-world:latest $docker push UNRAID-IP:6182/docker-jcr/hello-world:latest The push refers to repository [UNRAID-IP:1182/docker-jcr/hello-world] 9c27e219663c: Pushed latest: digest: sha256:90659bf80b44ce6be8234e6ff90a1ac34acbeb826903b02cfa0da11c82cbc042 size: 525 After docker push: Edited February 10, 2021 by frakman1 Quote Link to comment
neverendingtech Posted November 23, 2021 Share Posted November 23, 2021 Quote Preparing to run Artifactory in Docker Running as uid=1030(artifactory) gid=1030(artifactory) groups=1030(artifactory) Dockerfile for this image can found inside the container. To view the Dockerfile: 'cat /docker/artifactory-pro/Dockerfile.artifactory'. Copying Artifactory bootstrap files 2021-11-23T19:56:25.224Z [shell] [INFO ] [] [installerCommon.sh:3436 ] [main] - Mapping value from deprecated key EXTRA_JAVA_OPTIONS to new key JF_SHARED_EXTRAJAVAOPTS 2021-11-23T19:56:25.572Z [shell] [INFO ] [] [installerCommon.sh:1514 ] [main] - Checking open files and processes limits 2021-11-23T19:56:25.588Z [shell] [INFO ] [] [installerCommon.sh:1517 ] [main] - Current max open files is 40960 2021-11-23T19:56:25.604Z [shell] [INFO ] [] [installerCommon.sh:1528 ] [main] - Current max open processes is 127573 Database connection check failed Could not determine database type 2021-11-23T19:56:25.667Z [shell] [INFO ] [] [installerCommon.sh:1595 ] [main] - Testing directory /opt/jfrog/artifactory/var has read/write permissions for user id 1030 /opt/jfrog/artifactory/app/bin/installerCommon.sh: line 1567: /opt/jfrog/artifactory/var/test-permissions: Permission denied 2021-11-23T19:56:25.692Z [shell] [INFO ] [] [installerCommon.sh:1603 ] [main] - ########################################################### 2021-11-23T19:56:25.706Z [shell] [INFO ] [] [installerCommon.sh:1604 ] [main] - /opt/jfrog/artifactory/var DOES NOT have proper permissions for user id 1030 2021-11-23T19:56:25.722Z [shell] [INFO ] [] [installerCommon.sh:1605 ] [main] - Directory: /opt/jfrog/artifactory/var, permissions: 755, owner: UNKNOWN, group: users 2021-11-23T19:56:25.738Z [shell] [INFO ] [] [installerCommon.sh:1606 ] [main] - Mounted directory must have read/write permissions for user id 1030 2021-11-23T19:56:25.755Z [shell] [INFO ] [] [installerCommon.sh:1607 ] [main] - ########################################################### 2021-11-23T19:56:25.772Z [shell] [ERROR] [] [installerCommon.sh:709 ] [main] - Directory /opt/jfrog/artifactory/var has bad permissions for user id 1030 I'm getting the permissions error on top when the docker first runs. What's weird is it seems to be skipping the docker variable which should be assigning it 99/100 for the UID/GID and going with 1030 erroring out because it can't write to AppData folder. Any ideas? I'm running UnRAID 6.10 RC2. Quote Link to comment
Diego Spinola Posted August 17, 2022 Share Posted August 17, 2022 Hi there @neverendingtech I managed to get it running by replacing the uid/gid from the template and adding "--user 99:100" as an extra parameter in the docker advanced options.... I guess better late than never Quote Link to comment
Recommended Posts
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.