当前位置: 首页 > news >正文

Debain12 离线安装docker

官网教程:https://docs.docker.com/engine/install/debian/

步骤

1. 解压 docker-deb.7z 安装包并上传Linux (资源在PC端文章顶部

在这里插入图片描述

2. 安装 .deb

sudo dpkg -i ./containerd.io_<version>_<arch>.deb \./docker-ce_<version>_<arch>.deb \./docker-ce-cli_<version>_<arch>.deb \./docker-buildx-plugin_<version>_<arch>.deb \./docker-compose-plugin_<version>_<arch>.deb

3.验证

sudo service docker start
sudo docker run hello-world

结果如下

root@VM-16-5-debian:~/docker# docker run hello-worldUnable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
c1ec31eb5944: Pull complete
Digest: sha256:266b191e926f65542fa8daaec01a192c4d292bff79426f47300a046e1bc576fd
Status: Downloaded newer image for hello-world:latestHello from Docker!
This message shows that your installation appears to be working correctly.To generate this message, Docker took the following steps:1. The Docker client contacted the Docker daemon.2. The Docker daemon pulled the "hello-world" image from the Docker Hub.(amd64)3. The Docker daemon created a new container from that image which runs theexecutable that produces the output you are currently reading.4. The Docker daemon streamed that output to the Docker client, which sent itto your terminal.To try something more ambitious, you can run an Ubuntu container with:$ docker run -it ubuntu bashShare images, automate workflows, and more with a free Docker ID:https://hub.docker.com/For more examples and ideas, visit:https://docs.docker.com/get-started/

如无法下载镜像,自行配置镜像源

vim /etc/docker/daemon.json{"registry-mirrors": ["https://<my-docker-mirror-host>"]
}
http://www.lryc.cn/news/370830.html

相关文章:

  • C++day5
  • SHELL脚本学习(六) 呈现数据
  • 计算机网络:网络层 - IPv4数据报 ICMP协议
  • 【需求设计】软件概要设计说明怎么写?概要设计说明书实际项目案例(63页Word直接套用)
  • 网络编程2----UDP简单客户端服务器的实现
  • 服务架构的设计原则
  • Day 14:2938. 区分黑球和白球
  • 部署YUM仓库及NFS共享服务
  • web学习笔记(六十五)
  • 66. UE5 RPG 实现远程攻击武器配合角色攻击动画
  • 用 Python 编写自动发送每日电子邮件报告的脚本,并指导我如何进行设置
  • AI大模型的战场:通用与垂直的较量
  • 单目标应用:基于人工原生动物优化器APO的微电网优化(MATLAB代码)
  • USB端口管控软件|USB端口控制软件有哪些(小技巧)
  • CorelDRAW2024官方最新中文破解版Crack安装包网盘下载安装方法
  • Mysql学习(八)——多表查询
  • LabVIEW进行图像拼接的实现方法与优化
  • 纷享销客安全体系:安全合规认证
  • 推荐这两款AI工具,真的很好用
  • 装饰器在实际开发中的作用
  • JVM学习-监控工具(三)
  • GPU显卡计算能力怎么算?
  • Spark参数配置不合理的情况
  • 【OpenGL学习】OpenGL不同版本渲染管线汇总
  • 等保测评练习
  • 第十五届蓝桥杯大赛 国赛 pb组F题【括号与字母】(15分) 栈的应用
  • MYSQL 三、mysql基础知识 4(存储过程与函数)
  • 鸿蒙开发文件管理:【@ohos.statfs (statfs)】
  • C++和C语言到底有什么区别?
  • 【Centos】深度解析:CentOS下安装pip的完整指南