docker内centos容器安装docker
2022/7/31 5:22:57
本文主要是介绍docker内centos容器安装docker,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
#安装包 yum install -y yum-utils #设置镜像的仓库 yum-config-manager \ --add-repo \ http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo #更新yum软件包索引 yum makecache fast #安装docker相关 docker-ce 社区版 ee企业版 yum install docker-ce docker-ce-cli containerd.io #启动docker systemctl start docker #验证是否启动成功 docker version #hello world docker run hello-world #阿里云镜像加速 sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors":["https://qiyb9988.mirror.aliyuncs.com"] } EOF
这篇关于docker内centos容器安装docker的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-03-28duckdns docker
- 2024-03-21docker add host
- 2024-03-14denied: requested access to the resource is denied docker push
- 2024-03-07docker graylog
- 2024-03-05Docker容器实战(00)-基础命令大全
- 2024-03-01dockerd-entrypoint.sh
- 2024-02-23linux mint install docker
- 2024-01-18angular docker
- 2024-01-10优雅而强力地卸载docker-desktop
- 2024-01-09完蛋,我被挖矿木马包围了|使用 TLS 连接 Docker