为了正常的体验网站,请在浏览器设置里面开启Javascript功能!

liunxCenterOS等操作系统使用wget安装使用docker容器

2023-06-22 5页 doc 17KB 8阅读

用户头像 个人认证

is_856463

暂无简介

举报
liunxCenterOS等操作系统使用wget安装使用docker容器  liunxCenterOS等操作系统使用wget安装使用docker容器  在/usr/local下创建docker文件夹mdkirdocker 安装包官方地址:https://download.docker.com/linux/static/stable/x86_64/可以先下载到本地,然后通过ftp工具上传到服务器上,或者在服务器上使用命令下载wgethttps://download.docker.com/linux/static/stable/x86_64/docker-18.06.3-ce.tgz进行解压:tar-...
liunxCenterOS等操作系统使用wget安装使用docker容器
  liunxCenterOS等操作系统使用wget安装使用docker容器  在/usr/local下创建docker文件夹mdkirdocker 安装包官方地址:https://download.docker.com/linux/static/stable/x86_64/可以先下载到本地,然后通过ftp工具上传到服务器上,或者在服务器上使用命令下载wgethttps://download.docker.com/linux/static/stable/x86_64/docker-18.06.3-ce.tgz进行解压:tar-zxvfdocker-18.06.3-ce.tgz将解压出来的docker文件复制到/usr/bin/目录下在/etc/systemd/system/目录下新增docker.service文件touchdocker.service在docker.service中写入内容如下,这样可以将docker注册为service服务 [Unit]Description=DockerApplicationContainerEngineDocumentation=https://docs.docker.comAfter=network-online.targetfirewalld.serviceWants=network-online.target [Service]Type=notify#thedefaultisnottousesystemdforcgroupsbecausethedelegateissuesstill#existsandsystemdcurrentlydoesnotsupportthecgroupfeaturesetrequired#forcontainersrunbydockerExecStart=/usr/bin/dockerd--selinux-enabled=false--insecure-registry=127.0.0.1ExecReload=/bin/kill-sHUP$MAINPID#Havingnon-zeroLimit*scausesperformanceproblemsduetoaccountingoverhead#inthekernel.Werecommendusingcgroupstodocontainer-localaccounting.LimitNOFILE=infinityLimitNPROC=infinityLimitCORE=infinity#UncommentTasksMaxifyoursystemdversionsupportsit.#Onlysystemd226andabovesupportthisversion.#TasksMax=infinityTimeoutStartSec=0#setdelegateyessothatsystemddoesnotresetthecgroupsofdockercontainersDelegate=yes#killonlythedockerprocess,notallprocessesinthecgroupKillMode=process#restartthedockerprocessifitexitsprematurelyRestart=on-failureStartLimitBurst=3StartLimitInterval=60s [Install]WantedBy=multi-user.target给docker.service文件添加权限chmod+x/etc/systemd/system/docker.service重新加载配置文件(修改docker.service文件时都要重新加载下)systemctldaemon-reload启动systemctlstartdocker设置开机启动systemctlenabledocker.service查看docker服务状态systemctlstatusdocker  -全文完-
/
本文档为【liunxCenterOS等操作系统使用wget安装使用docker容器】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。

历史搜索

    清空历史搜索