首页 > 系统相关 >Ubuntu安装docker

Ubuntu安装docker

时间:2022-10-14 12:36:43浏览次数:56  
标签:version apt sh https Ubuntu docker 安装 Docker

安装docker root@instance-wortxz7y-2:~# curl -sSL https://get.daocloud.io/docker | sh # Executing docker install script, commit: 4f282167c425347a931ccfd95cc91fab041d414f

  • sh -c apt-get update -qq >/dev/null
  • sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
  • sh -c mkdir -p /etc/apt/keyrings && chmod -R 0755 /etc/apt/keyrings
  • sh -c curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" | gpg --dearmor --yes -o /etc/apt/keyrings/docker.gpg
  • sh -c chmod a+r /etc/apt/keyrings/docker.gpg
  • sh -c echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu bionic stable" > /etc/apt/sources.list.d/docker.list
  • sh -c apt-get update -qq >/dev/null
  • sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-scan-plugin >/dev/null
  • version_gte 20.10
  • [ -z ]
  • return 0
  • sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq docker-ce-rootless-extras >/dev/null
  • sh -c docker version Client: Docker Engine - Community Version: 20.10.19 API version: 1.41 Go version: go1.18.7 Git commit: d85ef84 Built: Thu Oct 13 16:46:19 2022 OS/Arch: linux/amd64 Context: default Experimental: true

Server: Docker Engine - Community Engine: Version: 20.10.19 API version: 1.41 (minimum version 1.12) Go version: go1.18.7 Git commit: c964641 Built: Thu Oct 13 16:44:11 2022 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.8 GitCommit: 9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6 runc: Version: 1.1.4 GitCommit: v1.1.4-0-g5fd4c4d docker-init: Version: 0.19.0 GitCommit: de40ad0

================================================================================

To run Docker as a non-privileged user, consider setting up the Docker daemon in rootless mode for your user:

dockerd-rootless-setuptool.sh install

Visit https://docs.docker.com/go/rootless/ to learn about rootless mode.

To run the Docker daemon as a fully privileged service, but granting non-root users access, refer to https://docs.docker.com/go/daemon-access/

WARNING: Access to the remote API on a privileged Docker daemon is equivalent to root access on the host. Refer to the 'Docker daemon attack surface' documentation for details: https://docs.docker.com/go/attack-surface/

================================================================================ 查看docker状态 root@instance-wortxz7y-2:~# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES root@instance-wortxz7y-2:~#

标签:version,apt,sh,https,Ubuntu,docker,安装,Docker
From: https://blog.51cto.com/chinak/5756200

相关文章

  • Docker精通:微服务
    Docker进阶学完Docker安装到入门这篇文章后,相信大家对Docker有了较多的理解。下面是一些高级的使用,适用于分布式搭建等八、Docker网络1、理解网络1.1问题引出首先......
  • Minitab 21软件安装包下载及安装教程
    Minitab21软件简介:Minitab21是一款非常领先的数据分析软件,拥有先进分析和开源集成,深受广大质量学者和统计专家的青睐,对于经常做数据处理分析工作的人,它是绝对不少不了的。......
  • aidlux 安装 mysql 并设置密码及远程访问
    本文链接:aidlux安装mysql并设置密码及远程访问-Tiac-博客园(cnblogs.com) 一、安装mysql直接在应用中心里搜索安装mysql即可 二、启动mysql终端输入......
  • SQL Server 2016 安装
    数据库安装选择全新安装模式继续安装输入产品秘钥:这里使用演示秘钥进行接受许可规则检测可以后期再开放防火墙对外端口选择需要安装的功能,想省事可以选择【全选......
  • 2022年安装fedora workstation 36之后要安装的软件
    2022年安装fedoraworkstation36之后要安装的软件删除旧的内核以及其他不需要的旧软件包打开新系统之后首先更新系统,多半会安装新的内核,以及会出现一些无用的依赖。重新......
  • docker secret保存在哪里?
    0、关键问题dockersercret是用来保存敏感数据的,然后给service来用,用来确保关键数据的安全性。 那么,问题是: dockersecret的数据保存在哪里? 1、dockersecret......
  • NodeJS 服务 Docker 镜像极致优化指北
    这段时间在开发一个腾讯文档全品类通用的HTML动态服务,为了方便各品类接入的生成与部署,也顺应上云的趋势,考虑使用Docker的方式来固定服务内容,统一进行制品版本的管理。......
  • Docker镜像
    Docker的镜像是分层的,镜像底层为库文件且只读层即不能写入也不能删除数据,从镜像加载启动为一个容器后会生成一个可写层,其写入的数据会复制到宿主机上对应容器的目录,但是容......
  • Ubuntu编译安装protobuf
    一、下载源码包下载源码URL:https://github.com/protocolbuffers/protobuf/releases/download/v3.6.1/protobuf-all-3.6.1.tar.gz也可到https://github.com/protocolbuff......
  • ubuntu下pycharm 调试报错:.tensorrt import * ImportError: libcudnn.so.8: No such f
    ubuntu下pycharm调试报错:.tensorrtimport*ImportError:libcudnn.so.8:Nosuchfileordirectory解决方法:pycharm配置环境cuda的环境变量。run=>editconfiguratio......