Tag Archives: Yakkety

Running Docker on Ubuntu 16.10 Yakkety – Solved

If you try to install Docker on Ubuntu Server v16.10 (Yakkety) using the installation script provided by Docker, this will result in the error “E: Unable to locate package docker-engine”. My solution was to change the repository it was grabbing from Yakkety to the LTS (Long Term Support) version 16.04 – Xenial.

  1. Update package info and install certificates
    sudo apt-get update
    sudo apt-get install apt-transport-https ca-certificates
  2. Install the recommended pre-requisites
    sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual
  3. You can skip running the installation script, as this will result in the error “E: Unable to locate package docker-engine”.
    wget -qO- https://get.docker.com/ | sh
  4. Update the docker.list file to force it to pull from the other repo. You can verify it updated correctly by reading the file to the screen. Only the one line should be in the file.
    echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
    cat /etc/apt/sources.list.d/docker.list
  5. Update package info again and then install Docker
    sudo apt-get update sudo apt-get install -y -q docker-engine
  6. Start Docker and verify that it is running
    sudo service docker start
    sudo service docker status
    CTRL+C
  7. Run a test image
    sudo docker run hello-world
  8. Give your non-root user permissions to run docker. Change “myusername” to your user.
    sudo usermod -aG docker myusername