Jelastic - 在 JPS 中使用私有存储库
Jelastic - using private repository in JPS
有没有办法在使用 jps 启动新环境时使用私有 docker 存储库映像?
从市场上,我可以从私有存储库添加 docker 容器并启动它们,没问题。但是即使将图片添加到市场,使用jps启动的新环境也找不到图片... "adding privateRepo/image:latest node to env-xxxx | Image not found. Please double-check your entries"
[编辑]
下面是一个简单的 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"
}
]
}
在这方面得到了一些帮助。我正在寻找的东西是 "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"
}
]
}
有没有办法在使用 jps 启动新环境时使用私有 docker 存储库映像?
从市场上,我可以从私有存储库添加 docker 容器并启动它们,没问题。但是即使将图片添加到市场,使用jps启动的新环境也找不到图片... "adding privateRepo/image:latest node to env-xxxx | Image not found. Please double-check your entries"
[编辑]
下面是一个简单的 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"
}
]
}
在这方面得到了一些帮助。我正在寻找的东西是 "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"
}
]
}