我推送了一个本地 Docker 镜像
docker push bspartifact.artifactory.example.com/bspartifact:1.0
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
使用 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/
欢迎光临 OStack程序员社区-中国程序员成长平台 (https://ostack.cn/) | Powered by Discuz! X3.4 |