[Docker] 基础
删除未使用镜像:
1 | docker image prune -a |
Docker Hub镜像加速源
脚本换源:
1 | bash <(curl -sSL https://linuxmirrors.cn/docker.sh) |
1 | 网易:https://hub-mirror.c.163.com |
阿里云镜像加速服务(每个账号前缀不同,有很大更新延迟):
1 | https://3r1yhp3y.mirror.aliyuncs.com |
使用watchtower实现自动更新镜像和容器
docker-compose.yml部署
1 | version: '3.3' |
- Title:
- Author: 清夏晚风
- Created at : 2026-05-29 14:43:35
- Updated at : 2026-05-29 14:43:35
- Link: https://blog.yuil.cn/2026/05/29/虚拟容器技术/基础知识/基础/
- License: This work is licensed under CC BY-NC-SA 4.0.
Comments