Skip to content

Instantly share code, notes, and snippets.

@tobegit3hub
Last active June 14, 2016 01:11
Show Gist options
  • Save tobegit3hub/b0cd6eacb93d738c775c to your computer and use it in GitHub Desktop.
Save tobegit3hub/b0cd6eacb93d738c775c to your computer and use it in GitHub Desktop.

Ubuntu

# add-apt-repository -y ppa:docker-maint/testing

apt-get update -y
apt-get install -y docker.io
curl -L https://github.com/docker/compose/releases/download/1.7.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

CentOS

# CentOS install docker

https://docs.docker.com/engine/installation/linux/centos/

$ sudo tee /etc/yum.repos.d/docker.repo <<-'EOF'
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOF

yum install docker-engine

service docker start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment