笔记笔记
  • Home
  • AI&ML
  • Example
  • Zoo
  • 关于
⌘ K
docker 笔记
常用容器
Sonatype Nexus
GitLab CE
BitTorrent Tracker
搜索引擎
Debian
最后更新时间:
Copyright © 2023-2024 | Powered by dumi | GuoDapeng | 冀ICP备20004032号-1 | 冀公网安备 冀公网安备 13024002000293号
‌
‌
‌
‌

docker 笔记

启动服务

systemctl start docker
systemctl restart docker

镜像导入导出

# 创建一个新的镜像
docker commit <容器名> <NEW_IMAGE_NAME>:[TAG]
# --platform 下载特点版本镜像
docker pull --platform=linux/amd64 debian:latest
# 导出
docker save -o <导出文件名>.tar <本地镜像名|IMAGE_ID>
# 导入
docker load -i <导出文件名>.tar
# 镜像重命名
docker tag <IMAGE_ID> <NEW_IMAGE_NAME>:<TAG>

有趣的容器

  • sickcodes/docker-osx - 在Docker中以近乎原生的性能运行Mac OS X!