Created
June 4, 2019 20:15
-
-
Save nikkon-dev/f0860fc6a562a797de197c0dd858f4fd to your computer and use it in GitHub Desktop.
install_docker inside jenkins
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
apt-get update && \ | |
apt-get -y install apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg2 \ | |
software-properties-common && \ | |
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg > /tmp/dkey; apt-key add /tmp/dkey && \ | |
add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \ | |
$(lsb_release -cs) \ | |
stable" && \ | |
apt-get update && \ | |
apt-get -y install docker-ce |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment