docker
神也会困
这个作者很懒,什么都没留下…
展开
-
compose报错:“Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.15/main: Permission denied”
删掉Dockerfile文件中,“RUN apk add --no-cache gcc musl-dev linux-headers”原创 2022-05-16 16:36:29 · 538 阅读 · 1 评论 -
Compose国内镜像
//compose国内镜像 curl -L https://get.daocloud.io/docker/compose/releases/download/1.25.5/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose 赋权:sudo chmod +x /usr/local/bin/docker-compose docker-compose version原创 2022-05-16 15:05:49 · 277 阅读 · 0 评论 -
docker redis集群
#创建redis网络 docker network create redis --subnet 172.38.0.0/16 # 通过脚本创建六个redis配置 for port in $(seq 1 6);\ do \ mkdir -p /mydata/redis/node-${port}/conf touch /mydata/redis/node-${port}/conf/redis.conf cat << EOF >> /mydata/redis/node-${port}/原创 2022-05-15 20:38:33 · 96 阅读 · 0 评论 -
docker常用命令
attach Attach to a running container #当前shell下attach连接指定运行镜像 build Build an image from a Dockerfile #通过Dockerfile定制镜像 commit Create a new image from a container's changes #提交当前容器为新的镜像 cp Copy files/folders from a container to a HOSTDIR or t原创 2022-05-11 13:49:10 · 108 阅读 · 0 评论