Linux下如何使用二进制文件的方式安装docker
发表于:2025-11-13 作者:千家信息网编辑
千家信息网最后更新 2025年11月13日,这篇文章给大家分享的是有关Linux下如何使用二进制文件的方式安装docker的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。1,下载二进制文件https://downloa
千家信息网最后更新 2025年11月13日Linux下如何使用二进制文件的方式安装docker
这篇文章给大家分享的是有关Linux下如何使用二进制文件的方式安装docker的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。
1,下载二进制文件
https://download.docker.com/linux/static/stable/x86_64/docker-18.03.1-ce.tgz
2,解压二进制文件
tar xzvf docker-18.03.1-ce.tgz
3,复制二进制文件到/usr/bin目录下
cp docker/* /usr/bin/
4,检查是否安装
docker versionClient:Version: 18.03.1-ceAPI version: 1.37Go version: go1.9.2Git commit: 9ee9f40Built: Thu Apr 26 07:12:25 2018OS/Arch: linux/amd64Experimental: falseOrchestrator: swarmServer:Engine:Version: 18.03.1-ceAPI version: 1.37 (minimum version 1.12)Go version: go1.9.5Git commit: 9ee9f40Built: Thu Apr 26 07:23:03 2018OS/Arch: linux/amd64Experimental: false
5,配置 docker.service文件
vi /usr/lib/systemd/system/docker.service[Unit]Description=Docker Application Container EngineDocumentation=https://docs.docker.comAfter=network-online.target firewalld.serviceWants=network-online.target[Service]Type=notifyExecStart=/usr/bin/dockerdExecReload=/bin/kill -s HUP $MAINPIDLimitNOFILE=infinityLimitNPROC=infinityTimeoutStartSec=0Delegate=yesKillMode=processRestart=on-failureStartLimitBurst=3StartLimitInterval=60s[Install]WantedBy=multi-user.target
6,启动dockerd服务进程
systemctl daemon-reloadsystemctl start docker.service
7,检验
# ps aux|grep dockerroot 2262 0.1 4.4 472948 44944 ? Ssl 16:38 0:00 /usr/bin/dockerdroot 2266 0.2 1.3 277032 13540 ? Ssl 16:38 0:01 docker-containerd --config /var/run/docker/containerd/containerd.tomlroot 2895 0.0 0.0 112660 972 pts/0 S+ 16:48 0:00 grep --color=auto docker# docker run hello-worldHello 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/engine/userguide/
感谢各位的阅读!关于"Linux下如何使用二进制文件的方式安装docker"这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!
文件
二进制
方式
内容
更多
篇文章
不错
实用
文章
目录
看吧
知识
进程
参考
帮助
有关
服务
检查
检验
配置
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
关于网络安全专业术语
校园网络安全应急预案博客
君越加速器服务器选择
柳州网络安全企业
直播姬服务器错误
全球软件开发比赛
战地五进入指定服务器
服务器怎么删除一些内存
美国网络安全沪
戴尔rx740服务器
宝安区专业服务器机柜
海关 网络安全自查报告
网络安全法教育活动方案
地牢猎手5服务器维护
qt是个数据库吗
信息网络技术包括什么
广东软件开发外包公司
arm小服务器可用的网盘系统
抖音公司有多少台负载均衡服务器
旧电脑怎么做成家庭服务器
8uftp服务器
佛山选购戴尔服务器
isp 的服务器域名怎么查
数据库 case 的用法
系统镜像服务器无法启动
设置数据库
抖音公司有多少台负载均衡服务器
皇室战争手机版怎么改服务器
网络技术面试真题
网络安全百字令写作技巧