资讯详情

docker 安装

docker 安装 参考官方网站文档,阅读文档,官方提供安装脚本,通过执行脚本,可以一键安装 docker engine,很方便。

$curl -fsSL https://get.docker.com -o get-docker.sh $sudo sh get-docker.sh 

我在 centos8 安装时遇到报错

Error:   Problem: problem with installed package buildah-1.11.6-7.module_el8.2.0 305 5e198a41.x86_64   - package buildah-1.11.6-7.module_el8.2.0 305 5e198a41.x86_64 requires runc >= 1.0.0-26, but none of the providers can be installed 

直接卸载 runc 重新执行脚本即可成功安装。

$sudo rpm -e runc --nodeps $sudo sh get-docker.sh ...  ================================================================================  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/  ================================================================================ 

安装完成后,需要手动启动服务

$sudo systemctl start docker 

标签: 红外光电传感器st198a

锐单商城拥有海量元器件数据手册IC替代型号,打造 电子元器件IC百科大全!

锐单商城 - 一站式电子元器件采购平台