最近用docker部署环境,总是失败,有没有朋友也遇到类似情况?

之前我部署一直都没问题,就是最近总不成功,搜索了很多方法都解决不了,包括什么增加docker镜像啥的。

有没有遇到跟我情况一样的?

Laravel

《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
讨论数量: 5

最近docker镜像都被废了

7个月前 评论
xiaochong0302

国内在线拉的太不稳定了(随时可能用不了),我现在都改成下载镜像,再导入的方式了

download_dir=https://download.koogua.com/docker-images

#下载&导入镜像
if [ "$(image_exists nginx:1.18)" = 'no' ]; then
  file=nginx-1.18.tar.gz
  curl -O ${download_dir}/${file}
  docker load -i ${file}
  rm -f ${file}
fi

if [ "$(image_exists mysql:5.7)" = 'no' ]; then
  file=mysql-5.7.tar.gz
  curl -O ${download_dir}/${file}
  docker load -i ${file}
  rm -f ${file}
fi

if [ "$(image_exists redis:5.0)" = 'no' ]; then
  file=redis-5.0.tar.gz
  curl -O ${download_dir}/${file}
  docker load -i ${file}
  rm -f ${file}
fi

if [ "$(image_exists schickling/beanstalkd:latest)" = 'no' ]; then
  file=schickling-beanstalkd-latest.tar.gz
  curl -O ${download_dir}/${file}
  docker load -i ${file}
  rm -f ${file}
fi

if [ "$(image_exists hightman/xunsearch:latest)" = 'no' ]; then
  file=hightman-xunsearch-latest.tar.gz
  curl -O ${download_dir}/${file}
  docker load -i ${file}
  rm -f ${file}
fi

if [ "$(image_exists xiaochong0302/php:ctc-pro)" = 'no' ]; then
  file=xiaochong0302-php-ctc-pro.tar.gz
  curl -O ${download_dir}/${file}
  docker load -i ${file}
  rm -f ${file}
fi

normal_print "\n------ build docker containers ------\n"

#构建镜像
docker-compose build

#启动容器
docker-compose up -d
7个月前 评论

docker被墙了不知道吗。。

7个月前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!