0

我正在尝试使用 Docker Enterprise Edition 2.0 部署 Eclipse Che 多用户服务器。

Docker EE 服务器不暴露在互联网上,Docker Hub 访问由 Nexus Repository 服务器 (nexq.xxxx.it) 代理。

我正在寻找要配置的 -e 参数,但 -e CHE_DOCKER_REGISTRY 似乎仅用于创建工作区,但不适用于 Eclipse Che 初始化图像拉取。

这是我正在使用的命令:

docker run -it --rm -e CHE_MULTIUSER=true -e CHE_HOST=yyyy.xxxx.it -e CHE_DOCKER_REGISTRY=nexq.xxxx.it -v /var/run/docker.sock:/var/run/docker.sock -v /root/eedata:/data nexq.xxxx.it/eclipse/che:6.6.0 start --fast

这里 cli.log 日志:

[root@orme eedata]# tail -f cli.log
eval IMAGE_CHE=${IMAGE_CHE:-eclipse/che-server:6.6.0}
eval IMAGE_COMPOSE=${IMAGE_COMPOSE:-docker/compose:1.10.1}
eval IMAGE_POSTGRES=${IMAGE_POSTGRES:-centos/postgresql-96-centos7:9.6}
eval IMAGE_KEYCLOACK=${IMAGE_KEYCLOACK:-jboss/keycloak-openshift:3.3.0.CR2-3}
eval UTILITY_IMAGE_CHEACTION=${UTILITY_IMAGE_CHEACTION:-eclipse/che-action:6.6.0}
eval UTILITY_IMAGE_CHEDIR=${UTILITY_IMAGE_CHEDIR:-eclipse/che-dir:6.6.0}
eval UTILITY_IMAGE_CHETEST=${UTILITY_IMAGE_CHETEST:-eclipse/che-test:6.6.0}
eval UTILITY_IMAGE_CHEMOUNT=${UTILITY_IMAGE_CHEMOUNT:-eclipse/che-mount:6.6.0}
INFO: (che cli):  Pulling image alpine:3.4
docker pull alpine:3.4 >> "/data/cli.log" 2>&1
ERROR: Image alpine:3.4 unavailable. Not on dockerhub or built locally.
4

1 回答 1

0

尝试使用 form: registry.address:port/image,例如在您的情况下: nexq.xxxx.it/alpine:3.4

于 2018-06-19T12:53:17.877 回答