Jelastic-在JPS中使用私有存储库 [英] Jelastic - using private repository in JPS

查看:85
本文介绍了Jelastic-在JPS中使用私有存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用jps启动新环境时,是否可以使用私有docker存储库映像?

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

从市场上,我可以从私有存储库添加docker容器并启动它们,在那里没有问题.但是,即使将映像添加到市场上,使用jps启动的新环境也无法找到该映像...将privateRepo/image:latest节点添加到env-xxxx |找不到映像.请仔细检查您的输入"

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"

下面是一个简单的JPS示例,从...开始.karppo/测试映像位于hub.docker.com中,作为一个私有存储库,我想使用JPS启动它.

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"
    }
]
}

推荐答案

对此有所帮助.我一直在寻找的东西是注册表".

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"
    }
]
}

这篇关于Jelastic-在JPS中使用私有存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆