Skip to content

Instantly share code, notes, and snippets.

@Signorini
Created December 7, 2016 13:20
Show Gist options
  • Save Signorini/9a960c4fc107ca915b362c928489b800 to your computer and use it in GitHub Desktop.
Save Signorini/9a960c4fc107ca915b362c928489b800 to your computer and use it in GitHub Desktop.
Docker instalation - Jenkis 2 Docker
# Installing Docker
apt-get update
apt-get install apt-transport-https ca-certificates
## Install apt-key for docker
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update
apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual
apt-get install docker-engine
service docker start
# Install Docker Compose
curl -L "https://github.com/docker/compose/releases/download/1.8.1/docker-compose-$(uname -s)-$(uname -m)" > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
# Pulling images
docker pull jeffersonsouza/jenkins:alpine
docker pull jeffersonsouza/jenkins:slave-php
docker pull jeffersonsouza/jenkins:slave-php5
docker pull rancher/server
docker pull rancher/agent
docker pull mariadb
docker pull registry
docker pull nginx
docker pull php:fpm-alpine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment