首页 > 其他分享 >docker部署安装

docker部署安装

时间:2022-11-01 19:26:00浏览次数:46  
标签:get 部署 apt ce https ubuntu docker 安装

Ubuntu 22.04(使用 apt-get 进行安装)

# step 1: 安装必要的一些系统工具
sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
# step 2: 安装GPG证书
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
# Step 3: 写入软件源信息
sudo add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
# Step 4: 更新并安装Docker-CE
sudo apt-get -y update
sudo apt-get -y install docker-ce

# 安装指定版本的Docker-CE:
# Step 1: 查找Docker-CE的版本:
# apt-cache madison docker-ce
#   docker-ce | 17.03.1~ce-0~ubuntu-xenial | https://mirrors.aliyun.com/docker-ce/linux/ubuntu xenial/stable amd64 Packages
#   docker-ce | 17.03.0~ce-0~ubuntu-xenial | https://mirrors.aliyun.com/docker-ce/linux/ubuntu xenial/stable amd64 Packages
# Step 2: 安装指定版本的Docker-CE: (VERSION例如上面的17.03.1~ce-0~ubuntu-xenial)
# sudo apt-get -y install docker-ce=[VERSION]
apt install  docker-ce=5:20.10.17~3-0~ubuntu-jammy docker-ce-cli=5:20.10.17~3-0~ubuntu-jammy

标签:get,部署,apt,ce,https,ubuntu,docker,安装
From: https://www.cnblogs.com/pang-lu/p/16848841.html

相关文章

  • Springboot 项目打成jar包部署到服务器中的方式
    Springboot项目打成jar包部署到服务器中的方式前言:目前,前后端分离的架构已成主流,而使用SpringBoot构建Web应用是非常快速的,项目发布到服务器上的时候,只需要打成一个jar包......
  • Win11 使用Hyper-V快速安装Win10
    由于我的电脑更新成了win11,很多东西还不如win10找了半天没有找到hyper-v,于是就搜索记录一下过程过程安装hyper-v打开新建一个Hyper-V.cmd文件,将下面的内容粘入保存。......
  • 安装Ubuntu 18.0.4
     安装后1.设置静态ip与dns   参考链接:https://www.cnblogs.com/youname/p/15704027.html、https://www.cnblogs.com/mouseleo/p/14976527.html   sudovi/e......
  • Linux查找软件安装路径
    一、查看软件安装路径:Linux软件安装的地方不止一个地方,先说查看软件安装的所有路径(地址)。这里以Mysql为例。比如说我安装了Mysql,但是不知道文件都安装在哪些地方、放在......
  • 15Jmeter之plugins插件安装
    jmeter中plugins插件安装,该插件可以快速安装其他插件。1.下载配置下载插件JMeterPluginsManager:https://jmeter-plugins.org/wiki/PluginsManager/下载JAR包并放至a......
  • 如何将传统 Web 框架迁移部署到 Serverless 架构?
    简介: 与其说Serverless架构是一个新的概念,不如说它是一种全新的思路,一种新的编程范式。与其说Serverless架构是一个新的概念,不如说它是一种全新的思路,一种......
  • Docker Hub(chrono《kubernetes入门实战课》笔记整理)
    dockerpull的时候,如果没有明确指定镜像仓库,就会使用默认的“DockerHub”(https://hub.docker.com/),是docker公司官方搭建的服务。【如何在DockerHub上挑选镜像】docker......
  • redis 5.0.5集群部署与故障模拟
    背景业务稳定性要求需要一套redis集群来保障因此采用rediscluster集群环境名称ip地址cpu内存master端口slave端口redis-65110.65.6.514c8G70017......
  • python: easyocr的安装和使用(easyocr 1.6.2 / Python 3.7.15 )
    一,安装easyocr:1,官网:https://www.jaided.ai/项目代码地址:https://github.com/JaidedAI/EasyOCR通过pip安装:[root@blog~]#pip3installeasyocr查看......
  • DM数据库安装、登录和创建用户
    DM数据库安装、登录和创建用户子安拉取镜像wget-Odm8_docker.tar-chttps://download.dameng.com/eco/dm8/dm8_20220822_rev166351_x86_rh6_64_ctm.tardockerloa......