docker
tryyourbest0928
这个作者很懒,什么都没留下…
展开
-
docker部署geoserver
docker 部署geoserver2.21.1原创 2022-09-02 10:37:09 · 995 阅读 · 0 评论 -
docker日志/var/lib/docker/containers/json.log清理
docker 日志原创 2022-06-22 15:54:17 · 1281 阅读 · 0 评论 -
离线更新单个docker
#! /bin/bash# sh front-offline-update.sh load | sh front-offline-update.sh save # sh single-front-offline-update.sh save front_name | sh single-front-offline-update.sh load front_name port# update the ezstudio_fronts if [ "$1" = "save" ]then docker原创 2021-12-21 16:27:15 · 510 阅读 · 0 评论 -
centos7.5 离线安装docker
docker_offline_install.sh#! /bin/shcd /var/ctdna/mv /tmp/docker-20.10.7.tgz .tar zxf docker-20.10.7.tgzls -l docker-20.10.7.tgzcp docker/* /usr/bin/touch /etc/systemd/system/docker.serviceecho "[Unit]Description=Docker Application Container Engine原创 2021-11-11 14:36:41 · 368 阅读 · 0 评论 -
dockerfile 修改镜像源站
# dockerfileFROM node:12.18.0-alpine3.11ARG NPM_RUN_ARG=build# 修改镜像源RUN echo -e http://mirrors.ustc.edu.cn/alpine/v3.11/main/ > /etc/apk/repositoriesRUN apk add nginx tzdataRUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime原创 2021-11-04 15:26:54 · 1357 阅读 · 0 评论 -
一个docker内不同参数执行个npm run
/www/wwwroot # cat Dockerfile FROM node:12.18.0-alpine3.11ARG NPM_RUN_ARG=buildARG NPM_RUN_ARG_TWO=build-storybookRUN apk add nginx tzdataRUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtimeADD . /www/wwwroot/WORKDIR /www/wwwroot/#RUN ya原创 2021-10-21 16:45:10 · 1119 阅读 · 0 评论 -
docker-rabbitmq+redis+postgreSQL+mysql+mongo
runlike -p rabbitmq-serverdocker run -d -p 7803:6379 --name juluo-redis -v /export/redis/config/redis.conf:/etc/redis/redis.conf -v /export/redis/data:/data redis:5.0.14 redis-server /etc/redis/redis.conf --appendonly yes docker run -d --name juluo-原创 2021-10-09 14:08:57 · 179 阅读 · 0 评论 -
ubuntu 20.04gitlab-runner docker方式安装使用
需求: 新增一个办公室的runner来跑CI,本次机器为全新机器无基础环境,详细操作步骤如下:# 新建gitlab-runner用户vim add_gitlab-runner_user.shapt-get install vim# 安装dockerapt-get update# 安装 apt 依赖包,用于通过HTTPS来获取仓库:apt-get install apt-transport-https ca-certificates curl gnupg-age原创 2021-07-30 17:01:14 · 696 阅读 · 0 评论 -
nginx反向代理实现二级域名转一级域名
需求场景:有两个大项目交互必须在一级域名下,每个项目有多个前端,之前采用二级或三级域名的方式导致域名过多不好维护,故由project1.service1.city.com、project1.service2.city.com、project1.service3.city.com的方式,转换为project1.city.com/service1/、project1.city.com/service2/、project1.city.com/service3/后续域名仅需按项目维护单个前端服务均为do.原创 2021-05-07 13:45:52 · 1624 阅读 · 0 评论 -
前端docker内node_modules自动打包上传
[root@new-test ~]# cat node_modules.sh#! /bin/sh# sh node_modules.sh project_name#wget http://gosspublic.alicdn.com/ossutil/1.7.0/ossutil64#chmod 755 ossutil64#./ossutil64 configdocker cp $1:/www/wwwroot/node_modules .sleep 15tar zcf $1.tar.gz node原创 2021-04-14 11:29:09 · 538 阅读 · 0 评论 -
Error: Unable to download sentry-cli binary from https://downloads.sentry-cdn.com/sentry-cli/1.63.1/
# genmuluchuangjian .yarnrc/www/wwwroot # vi .yarnrcregistry: https://registry.npm.taobao.orgENTRYCLI_CDNURL: https://cdn.npm.taobao.org/dist/sentry-clisentrycli_cdnurl: https://cdn.npm.taobao.org/dist/sentry-cli/www/wwwroot # yarn config listyarn c原创 2021-03-04 15:12:52 · 6191 阅读 · 5 评论 -
docker 模式 gitlab备份数据恢复注意事项
https://gitlab.com/gitlab-org/gitlab-foss/-/issues/59822# backup and restore admin/runner 500 Internal Server Error# gitlab-rails console------------------------------------------------------------------------------------- GitLab: 11.10.1 (861f原创 2021-01-20 15:20:50 · 294 阅读 · 0 评论 -
ubuntu containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
root@xxktt-System-Product-Name:~# systemctl status docker● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2021-0原创 2021-01-04 12:03:13 · 7691 阅读 · 8 评论 -
git shell docker常用命令
# git# 下载git clone --branch dev --single-branch --depth=1 git@gitlab.citydnatech.com:pinsurvey/pinsurvey_front.git# 更新git pull --> git add file --> git commit -m "update" --> git push file# docker# 仅获取docker id【quiet】docker ps -q # 删除exis原创 2020-12-31 16:31:10 · 154 阅读 · 0 评论 -
Error response from daemon: conflict: unable to delete 10cc881966cf (must be forced)
root@ctdnad21:~# docker rmi 10cc881966cfError response from daemon: conflict: unable to delete 10cc881966cf (must be forced) - image is referenced in multiple repositories#docker rmi -f `docker images | awk '{print $1 ":" $2}'`原创 2020-12-31 15:39:01 · 129 阅读 · 0 评论 -
k8s install on centos7国内源
https://kubernetes.io/zh/docs/setup/production-environment/tools/kubeadm/install-kubeadm/需要在每台机器上安装以下的软件包:cat <<EOF > /etc/yum.repos.d/kubernetes.repo[kubernetes]name=Kubernetesbaseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernete原创 2020-12-30 19:12:12 · 327 阅读 · 0 评论 -
docker文件夹共享
# 宿主机文件共享同步docker run -d --name=test -v /var/test:/var/docker-data docker-image# docker间文件夹共享:采用--volumes-from,可以使用最小的镜像busybox来帮忙实现docker run --name=storedata -v /data:/usr/data busybox truedocker run -d --name=test01 --volumes-from storedata docke原创 2020-12-10 09:58:03 · 557 阅读 · 0 评论 -
ERROR: unsatisfiable constraints: git (missing): required by: world[git]
利用runner做前端依赖下载工作,runner放香港等海外机器,下载率相对较高需要npm yarn ssh git基础环境安装git时候报错如下# 基础镜像node:12.18.0-alpine3.11$ apk --no-cache add gitfetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gzfetch http://dl-cdn.alpinelinux.org/alpine/v3.原创 2020-12-04 10:39:40 · 3806 阅读 · 0 评论 -
gitlab数据备份恢复[docker方式]
说明:gitlab数据备份的前提条件,恢复版本需要与原备份版本一致以docker方式运行时候,启动恢复后若报错login or password rejected,是因为docker -v 环境有问题,docker volume ls 查看挂载,做合理删除搭建gitlab# 查看gitlab版本cat /opt/gitlab/embedded/service/gitlab-rails/VERSION# 下载启动gitlabsudo docker run --detach --hos原创 2020-12-02 17:18:46 · 725 阅读 · 0 评论