Docker Juice‎ > ‎

Docker Install on Ubuntu 14.04

Links :


My quick install guide : 


On Ubuntu 14.04, edit the /etc/default/grub file and set the GRUB_CMDLINE_LINUX value as follows:
  1. GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
  1. sudo update-grub

  1. sudo apt-get update && apt-get upgrade && apt-get install apt-transport-https ca-certificates linux-image-extra-$(uname -r) apparmor
    
  2. sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
  1. sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
    or behind a proxy : 
    sudo apt-key adv  --keyserver-options http-proxy=http://proxy.nsa.com:9090  --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
  1. echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list
  1. apt-get update && apt-get upgrade && apt-get install docker-engine



With BTRFS (must do this before installing package docker-engine) :

sudo apt-get install btrfs-tools sudo mkfs.btrfs -f /dev/sdbx sudo mkdir /var/lib/docker


#create fstab entry : sudo blkid /dev/sdbx
UUID="a0ed851e-158b-4120-8416-c9b072c8cf47" /var/lib/docker btrfs defaults 0 0


Move docker root dir


  •  /etc/default/docker -->  DOCKER_OPTS="-g /data/docker"


Sous-pages (1) : example
Comments