使用nexus托管的docker注册表进行eclipse-che

时间:2019-09-09 05:51:29

标签: docker nexus docker-registry eclipse-che

我们在Nexus中设置了Docker注册表,并且所有推入和拉出操作均通过nexus托管的Docker注册表进行。我们正在尝试使用网址“ nexus:6666 / eclipse / che:5.20.1”运行Eclipse Che图像

我们已经使用参数CHE_DOCKER_REGISTRY_AUTH_REGISTRY1_URL来提供注册表URL,但是它不起作用

docker run -it -v $PWD/data:/data -v /var/run/docker.sock:/var/run/docker.sock -e CHE_HOST_IP=127.0.0.1 -e CHE_PORT=8090 -e CHE_DOCKER_REGISTRY_AUTH_REGISTRY1_URL="https://nexus:6666/v2" -e CHE_DOCKER_REGISTRY_AUTH_REGISTRY1_USERNAME=username -e CHE_DOCKER_REGISTRY_AUTH_REGISTRY1_PASSWORD=password nexus:6666/eclipse/che:5.20.1 start

但出现错误

INFO: Welcome to Eclipse Che!
INFO:
INFO: We could not resolve DockerHub using DNS.
INFO: Either we cannot reach the Internet or Docker's DNS resolver needs a modification.
INFO:
INFO: You can:
INFO:   1. Modify Docker's DNS settings.
INFO:      a. Docker for Windows & Mac have GUIs for this.
INFO:      b. Typically setting DNS to 8.8.8.8 fixes resolver issues.
INFO:   2. Does your network require Docker to use a proxy?
INFO:      a. Docker for Windows & Mac have GUIs to set proxies.
INFO:   3. Verify that you have access to DockerHub.
INFO:      a. Try 'curl --head hub.docker.com'
INFO:   4. Skip networking checks.
INFO:      a. Add '--fast' to any command

Eclipse che映像应与配置的nexus托管docker注册表一起运行。请帮忙。这真的困扰着我和我的团队

0 个答案:

没有答案
相关问题