Guest User

Migrate Docker to APT repo in Ubuntu

a guest
Jul 24th, 2015
553
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. UBUNTU_VERSION_CODENAME="$(lsb_release -c | awk '{ print $2 }')"
  4.  
  5. apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
  6.  
  7. echo "deb https://apt.dockerproject.org/repo ubuntu-${UBUNTU_VERSION_CODENAME} main" > /etc/apt/sources.list.d/docker.list
  8.  
  9. apt-get update
  10. apt-get purge -y lxc-docker*
  11. apt-get install -y docker-engine
RAW Paste Data