Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing docker on Ubuntu 16.10

Tags:

docker

ubuntu

The installation instructions go up to Xenial... https://docs.docker.com/engine/installation/linux/ubuntulinux/ . Any idea how to install it on Yakkety?

like image 723
ashic Avatar asked Oct 31 '16 18:10

ashic


People also ask

Can I install Docker on Ubuntu?

You need to download a new file each time you want to upgrade Docker. Go to https://download.docker.com/linux/ubuntu/dists/ , choose your Ubuntu version, then browse to pool/stable/ , choose amd64 , armhf , arm64 , or s390x , and download the .deb file for the Docker Engine version you want to install.

Does Ubuntu 20.04 have Docker?

In this tutorial, you'll install and use Docker Community Edition (CE) on Ubuntu 20.04. You'll install Docker itself, work with containers and images, and push an image to a Docker Repository.

Can I install Docker on Linux VM?

Docker depends on the Linux kernel to operate correctly. Since it doesn't virtualize components, its host OS needs to have access to the Linux kernel and other Linux components. That means you can only use Docker to run the Linux OS and not Windows or Mac OS.


2 Answers

Just run : sudo apt-get install docker.io and you're good to go.

like image 66
Chiamaka Ikeanyi Avatar answered Oct 20 '22 22:10

Chiamaka Ikeanyi


I have managed to run docker on Ubuntu 16.10 as follows:

1.Update apt and install required certificates $ sudo apt-get update $ sudo apt-get install apt-transport-https ca-certificates 2. Add the GPG key to apt
$ sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D 3. Add the docker repo to the apt list echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list 4. Update apt sudo apt-get update 5. Check that the repo contains the docker installers

  $ apt-cache policy docker-engine

  docker-engine:
    Installed: 1.12.2-0~trusty
    Candidate: 1.12.2-0~trusty
    Version table:
   *** 1.12.2-0~trusty 0
          500 https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Packages
          100 /var/lib/dpkg/status
       1.12.1-0~trusty 0
          500 https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Packages
       1.12.0-0~trusty 0
          500 https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Packages
  1. Install the docker engine

$ sudo apt-get install docker-engine

7.Start the docker daemon.

$ sudo service docker start

  1. Verify that docker is installed correctly by running the hello-world image.

$ sudo docker run hello-world

like image 30
Lucian Enache Avatar answered Oct 20 '22 21:10

Lucian Enache