基础环境
- Centos7.4
- docker: docker-18.09.06
Docker安装
- 解压
tar -xvf docker-18.09.6.tgz
- 将解压出的docker文件内容移动至/usr/bin/路径下
cp docker/* /usr/bin/
- 将docker注册为service
vim /etc/systemd/system/docker.service
- 将下列配置添加到docker.service后保存
[Unit] Description=Docker Application Container Engine Documentation=https://docs.docker.com After=network-online.target firewalld.service Wants=network-online.target [Service] Type=notify # the default is not to use systemd for cgroups because the delegate issues still # exists and systemd currently does not support the cgroup feature set required # for containers run by docker ExecStart=/usr/bin/dockerd ExecReload=/bin/kill -s HUP $MAINPID # Having non-zero Limit*s causes performance problems due to accounting overhead # in the kernel. We

本文详细介绍了在Centos7.4环境下,如何进行Docker-18.09.06和Docker-compose的离线安装。首先解压Docker安装包并将其内容移动至/usr/bin/,然后创建并配置docker.service,启动并设置Docker开机自启。接着,下载Docker-compose安装包并移到相应路径,重命名并赋予执行权限,最后验证Docker-compose安装成功。
最低0.47元/天 解锁文章
1119

被折叠的 条评论
为什么被折叠?



