オープンシフトには新しく基本的なセットアップを試しています。私はドッカーとopenshiftが私のウインドウズラップトップ内の私のUbuntu VMにインストールされています。ドッカーを単独で使用したり、ローカルレジストリからプッシュしたり引っ張ったりすることに問題はありません。オープンシフトの起点で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
を実行しているローカルレジストリを持っていると私は私がopenshiftでこのイメージを使用しようとすると、このレジストリ
docker images myregistry.com:5000/ubuntu
REPOSITORY TAG IMAGE ID CREATED SIZE
myregistry.com:5000/ubuntu latest cf62323fa025 7 days ago 125 MB
にイメージをプッシュしている下記取得していますエラー
./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はどのようにインストールしましたか? (ドッキング・コンテナで実行していますか?)高度なインストールにはRHELまたはCentOSが必要です。 – lvthillo