Windows10 docker ext4.vhdx占用磁盘过大

发布时间:2023-10-17 14:27:18   分类:docker

收缩ext4.vhdx文件清理不必要的镜像docker system prune停止wsl服务这个很慢,还不如重启,跳过这一步wsl --shutdown运行diskpart释放空间win命令行中执行, file= 换成自己的路径 diskpart选择虚拟机文件执行瘦身select vdisk file="C:\Users\hulong\AppData\Local\Docker\wsl\data\ext4.vhdx"attach vdisk readonlycompact vdiskdetach vdiskexit运行完可以发现释放空

Docker登录阿里云login报错Error saving credentials

发布时间:2023-05-31 15:36:20   分类:docker

登录阿里云提示指令执行:sudo docker login --username=myAliyunAccount registry.cn-beijing.aliyuncs.com此时报错完整信息如下:Error saving credentials: error storing credentials - err: exit status 1, out: `Post "http://ipc/registry/credstore-updated": dial unix backend.sock: connect: no such file or directory`解决的方法是,找到docker配置文件:  C:\Users

docker启动容器的时候报错 iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 9443 -j DNAT

发布时间:2022-12-21 14:26:23   分类:docker

使用systemctl restart docker重启一下docker服务,再启动docker容器,就可以了。

运行docker alpine 容器时报standard_init_linux.go:211: exec user process caused "no such file or directory"

发布时间:2021-04-25 15:28:52   分类:docker

解决步骤1: 安装dos2unix RUN  apk add --update --no-cache  dos2unix解决步骤2: 将相关文件转换一下字符dos2unix aa.sh  //run-lamp.sh 是执行问题根据自己修改

Dockerfile alpine + NGINX 配置

发布时间:2021-04-16 10:55:24   分类:docker

FROM alpineMAINTAINER hulongADD nginx.conf /tmp/nginx.confADD index.html /var/www/index.html## 将alpine-linux:apk的安装源改为国内镜像RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories# 设置时区为上海RUN apk add tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \    && ec