Skip to content

Instantly share code, notes, and snippets.

Last active Jul 14, 2019
What would you like to do?
docker ce and docker-compose install in centos7-64b
yum -y update
yum-config-manager --add-repo
yum -y install yum-utils device-mapper-persistent-data lvm2 docker-ce
systemctl start docker
systemctl enable docker
yum -y install epel-release
yum -y install python-pip
pip install docker-compose
# pip install --upgrade pip
yum -y install wget unzip git
wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" ""
rpm -Uvh jdk-12.0.1_linux-x64_bin.rpm
unzip -d /opt/gradle
echo 'export GRADLE_HOME=/opt/gradle/gradle-5.2.1' > /etc/profile.d/
echo 'export PATH=${GRADLE_HOME}/bin:${PATH}' >> /etc/profile.d/
echo >> /etc/profile.d/
source /etc/profile.d/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment