我推送了一个本地 Docker 镜像
docker push bspartifact.artifactory.example.com/bspartifact:1.0
到我的私有(private) Docker 集线器。我现在如何将该镜像部署到 Cloud Foundry?存储库通过使用用户名和密码的基本身份验证进行保护。谢谢。
编辑:
尝试 --docker-username 标志会导致以下错误:
Staging...
Staging process started ...
Failed to talk to docker registry: Get https://bspartifact.artifactory.example.com/v2/: dial tcp 10.xx.xxx.xxx:443: getsockopt: connection refused
Failed to talk to docker registry: Get http://bspartifact.artifactory.example.com/v2/: dial tcp 10.xx.xxx.xxx:80: getsockopt: connection refused
Best Answer-推荐答案
使用 cf CLI 6.28.0 或更高版本,运行 cf push myapp -o bspartifact.artifactory.example.com/bspartifact:1.0 --docker-username myuser .这将提示您输入密码。 对于非交互式使用,设置环境属性 CF_DOCKER_PASSWORD 到您的密码,CLI 将使用它。 有关详细信息,请参阅以下文档:http://docs.cloudfoundry.org/devguide/deploy-apps/push-docker.html#private-repo
关于docker - 如何从 Cloud Foundry 上的私有(private)存储库部署 Docker 镜像?,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/45189367/
|