提交 68da6727 编写于 作者: L Lei Wang 提交者: Dong Li

Add option to pull docker image from China mirror. (#488)

上级 1436a770
......@@ -47,7 +47,13 @@ echo "/apollo/data/core/core_%e.%p" | sudo tee /proc/sys/kernel/core_pattern
source ${APOLLO_ROOT_DIR}/scripts/apollo_base.sh
function main(){
docker pull $IMG
echo "Type 'y' or 'Y' to pull docker image from China mirror or any other key from US mirror."
read -t 10 -n 1 INCHINA
if [ "$INCHINA" == "y" ] || [ "$INCHINA" == "Y" ]; then
docker pull "registry.docker-cn.com/${IMG}"
else
docker pull $IMG
fi
docker ps -a --format "{{.Names}}" | grep 'apollo_dev' 1>/dev/null
if [ $? == 0 ]; then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册