Skip to content

Instantly share code, notes, and snippets.

@w4tson
Last active April 10, 2017 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save w4tson/f65db6563e0767ec64cd2e32973dd89e to your computer and use it in GitHub Desktop.
Save w4tson/f65db6563e0767ec64cd2e32973dd89e to your computer and use it in GitHub Desktop.
#setup target VM, DONT use docker, the fakesystemd throws things off
vagrant init bento/centos-7.1
vagrant ssh
#Add in your repo e.g:
sudo tee /etc/yum.repos.d/docker.repo <<-'EOF'
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOF
#These resolve the RPMs to the current directory
sudo yum install -y yum-utils
yuminstaller --resolve docker-engine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment