使用jps启动新环境时,有没有办法使用私有docker存储库映像?
从市场上,我可以从私有存储库添加docker容器并启动它们,没问题。但即使将图像添加到市场中,使用jps启动的新环境也找不到图像..."将privateRepo / image:最新节点添加到env-xxxx |图片未找到。请仔细检查您的参赛作品"
[编辑]
以下是一个简单的JPS示例... karppo / testing镜像在hub.docker.com中作为私有存储库,我想使用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"
}
]
}
答案 0 :(得分:2)
对此有所帮助。我正在寻找的东西是“注册表”。
{
"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"
}
]
}