基础环境
- 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