问题
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