是新openshift原點openshift,我試圖進行基本設置。我的Windows筆記本電腦中安裝了我的Ubuntu VM上的docker和openshift。我沒有任何問題在單獨使用docker和從本地註冊表中推送或拉出。我在openshift原點使用oc new-app命令時遇到問題。與當地碼頭工人註冊表
我有一個本地註冊表運行在我的VM
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
26d3a527398d registry:2 "/bin/registry serve " 16 minutes ago Up 16 minutes 0.0.0.0:443->443/tcp, 0.0.0.0:5000->5000/tcp registry
,我已經推了圖像此註冊表
docker images myregistry.com:5000/ubuntu
REPOSITORY TAG IMAGE ID CREATED SIZE
myregistry.com:5000/ubuntu latest cf62323fa025 7 days ago 125 MB
當我嘗試在openshift中使用這張圖片,下面我越來越錯誤
./oc new-app --docker-image=myregistry.com:5000/ubuntu
error: can't look up Docker image "myregistry.com:5000/ubuntu": Internal error occurred: Get https://myregistry.com:5000/v2/: http: server gave HTTP response to HTTPS client
error: no match for "myregistry.com:5000/ubuntu"
The 'oc new-app' command will match arguments to the following types:
1. Images tagged into image streams in the current project or the 'openshift' project
- if you don't specify a tag, we'll add ':latest'
2. Images in the Docker Hub, on remote registries, or on the local Docker engine
3. Templates in the current project or the 'openshift' project
4. Git repository URLs or local paths that point to Git repositories
--allow-missing-images can be used to point to an image that does not exist yet.
See 'oc new-app -h' for examples.
這是否與我的DNS解析有關?我如何使用我的本地註冊表我openshift起源
是從哪兒OpenShift運行的VM內''myregistry.com''分辨? –
你是如何安裝OpenShift的? (您是否在Docker容器中運行它?)因爲高級安裝需要RHEL或CentOS – lvthillo