Jelastic - using private repository in JPS

删除回忆录丶 提交于 2020-01-16 14:20:27

问题


Is there a way to use private docker repository images when launching a new environment using jps?

From marketplace, i can add docker containers from private repository and launch them, no problem there. But even when the image has been added to the marketplace, the new environment launched using jps, cannot find the image... "adding privateRepo/image:latest node to env-xxxx | Image not found. Please double-check your entries"

[edit]

Below is a simple example JPS to start from... The karppo/testing image is in hub.docker.com as a private repository and I would like to launch it using JPS.

{
"jpsType": "install",
"description": {
    "text": "repo testing qwe",
    "short": "repo testing qwe"
},
"name": "repo testing",
"success": {
    "text": "repo testing ok"
},
"nodes": [
    {
        "image": "karppo/testing",
        "count": 1,
        "cloudlets": 2,
        "nodeGroup": "purkka",
        "displayName" : "purkka"
    }
]
}

回答1:


Got a bit of help with this. The thing that i was looking for is "registry".

{
"jpsType": "install",
"description": {
    "text": "repo testing qwe",
    "short": "repo testing qwe"
},
"name": "repo testing",
"success": {
    "text": "repo testing ok"
},
"nodes": [
    {
        "image": "karppo/testing",
        "registry": {
            "user": "username",
            "password": "*******************",
            "url": "registry-1.docker.io"
        },
        "count": 1,
        "cloudlets": 2,
        "nodeGroup": "purkka",
        "displayName" : "purkka"
    }
]
}


来源:https://stackoverflow.com/questions/49273639/jelastic-using-private-repository-in-jps

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!