This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

23 lines
771 B
Bash
Executable File
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
#安装docker并设置为开机自启动
tar zxvf `pwd`/docker-18.09.8.tgz &&
cp `pwd`/docker/* /usr/bin/ &&
mkdir /etc/docker &&
cp `pwd`/daemon.json /etc/docker/daemon.json &&
cp `pwd`/docker.service /usr/lib/systemd/system/docker.service &&
#(默认执行)安装docker-compose工具
cp `pwd`/docker-compose/docker-compose /usr/local/bin/ &&
chmod +x /usr/local/bin/docker-compose &&
systemctl daemon-reload &&
systemctl start docker &&
systemctl enable docker
#如果报错 container init caused \"write /proc/self/attr/keycreate: permission denied\"": unknown.
#设置selinux 执行 setenforce 0
#或者永久关闭 执行 vi /etc/selinux/config 把其中的SELINUX=enforce改成disabled就可以了
#安装jq命令
cp `pwd`/jq-linux64 /usr/bin/jq