首页 > 其他分享 >docker 操作手册(三)镜像打包

docker 操作手册(三)镜像打包

时间:2024-01-16 17:17:12浏览次数:21  
标签:操作手册 -- image podman 镜像 docker save archive

保存镜像

docker image save --help
Save image(s) to an archive

Description:
  Save an image to docker-archive or oci-archive on the local machine. Default is docker-archive.

Usage:
  docker image save [options] IMAGE [IMAGE...]

Examples:
  podman image save --quiet -o myimage.tar imageID
  podman image save --format docker-dir -o ubuntu-dir ubuntu
  podman image save > alpine-all.tar alpine:latest

Options:
      --compress              Compress tarball image layers when saving to a directory using the 'dir' transport. (default is same compression type as source)
      --format string         Save image to oci-archive, oci-dir (directory with oci manifest type), docker-archive, docker-dir (directory with v2s2 manifest type) (default "docker-archive")
  -m, --multi-image-archive   Interpret additional arguments as images not tags and create a multi-image-archive (only for docker-archive)
  -o, --output string         Write to a specified file (default: stdout, which must be redirected)
  -q, --quiet                 Suppress the output
podman image save postgres -o myimg

导入镜像

podman image load -i myimg

标签:操作手册,--,image,podman,镜像,docker,save,archive
From: https://www.cnblogs.com/develon/p/17968083

相关文章

  • docker - 将几个目录复制到另一个目录
    您如何将多个目录复制到Docker中的目标目录?我不想复制目录内容,而是复制整个目录结构。COPY和ADD命令复制目录内容,展平结构,这是我不想要的。也就是说,如果这些是我的来源:.├──a│  ├──aaa.txt│  └──uuu.txt├──b│  ├──ooo.txt│  └──p......
  • Docker Compose学习路线
    DockerCompose是一种用于定义和运行多容器Docker应用程序的工具。以下是一份DockerCompose的学习路线:基础知识:了解DockerCompose的概念和用途熟悉DockerCompose的基本语法和命令环境搭建:安装Docker和DockerCompose配置DockerCompose环境变量基本概念和配置......
  • 一次非典型的gitlab镜像库(registry服务)故障排除
    现象公司内机房一次停电与服务器重启后,有人反应gitlab内的CI无法执行了。查看CI作业日志发现是registry镜像库访问返回了503错误。Errorresponsefromdaemon:loginattempttohttp://registry.xxx.com/v2/failedwithstatus:503ServiceUnavailable从本机执行docke......
  • docker mysql镜像
    https://hub.docker.com/_/mysql/dockerrun--namemysql\-eMYSQL_ROOT_PASSWORD=123456\--restart=always\-d\-p3306:3306\-eTZ=Asia/Shanghai\-eCHARACTER_SET_SERVER=utf8mb4\-eCOLLATION_SERVER=utf8mb4_unicode_ci\......
  • docker jmeter分布式压测部署 jmeter websocket压测
    测试场景:1.多名用户加入房间。2.房间人数为固定人数(比如4人) 3.有人进入时,进入用户会收到反馈当前房间人员列表。4.其他人会收到反馈新加入用户的信息消息。5.当人数已满时,会自动推送消息给所有人。6.在人满后,每个人需要按固定序列,发送消息。7.所有人发送特定消息后,推进房......
  • Docker 与 Linux Cgroups:资源隔离的魔法之旅
    这篇文章主要介绍了Docker如何利用Linux的ControlGroups(cgroups)实现容器的资源隔离和管理。最后通过简单Demo演示了如何使用Go和cgroups交互。如果你对云原生技术充满好奇,想要深入了解更多相关的文章和资讯,欢迎关注微信公众号。搜索公众号【探索云原生】即可订阅......
  • docker 设置 ulimit
    一、通过dockerrun–ulimit参数设置这个容器的ulimit值dockerrun--ulimitnofile=1024:1024--rmdebiansh-c"ulimit-n"二、通过配置daemon.json配置默认值配置nofile{"default-ulimits":{"nofile":{......
  • [FAQ] Docker查询出所有的停止容器并移除
     $ dockerrm`dockercontainerls-a--filter"status=exited"|awk'{print$1}'|sed'1,1d'|xargs` Ref:phvia/dkcRef:[Shell]字符截取命令:cut,printf,awk,sedRef:使用nodejs的puppeteer库使用完关闭后,linux上面有很多chrome进程Link:https......
  • 加速Docker-Pull或者docker-compose拉取镜像-适用github源
    title:加速DockerPull或者docker-compose拉取镜像-适用github源tags:[Docker,docker-compose]新版原文:https://query.carlzeng.top:3/appsearch?q=加速DockerPull版权声明:本博客所有文章除特别声明外,均采用BY-NC-SA许可协议。转载请注明出处!date:2023-12-2623:1......
  • TTS-Text-to-speech-服务docker搭建-转化文本内容为语音
    title:TTS(Text-to-speech)服务docker搭建转化文本内容为语音tags:[TTS,docker,语音,AI,docker-compose]新版原文:https://query.carlzeng.top:3/appsearch?q=TTS版权声明:本博客所有文章除特别声明外,均采用BY-NC-SA许可协议。转载请注明出处!date:2024-01-0715:12:46......