Docker is a great tool for automating the deployment of applications through containers. In this article we will see how to install docker on Ubuntu-17.04
   
    Since Ubuntu-17.04 is not a LTS version, installing package on 17.04 is little burden. It requires apt-get update on adding repositories which will fails on dependencies. Docker is one of the too. We cannot install docker through apt-get on Ubuntu-17.04. Here is a workaround that will install and run docker on Ubuntu-17.04.

Download the binary file from Docker official site through wget,

jhony@ljunix~/Downloads$ wget https://get.docker.com/builds/Linux/x86_64/docker-17.04.0-ce.tgz

Extract the file,

jhony@ljunix~/Downloads$ tar -xzf docker-17.04.0-ce.tgz

Copy the extracted files and folder to /usr/bin/ directory,

jhony@ljunix~/Downloads$ cd docker/
jhony@ljunix~/Downloads/docker$ ls
completion docker docker-containerd docker-containerd-ctr docker-containerd-shim dockerd docker-init docker-proxy docker-runc

jhony@ljunix~/Downloads/docker$ sudo cp -r * /usr/bin/

Start the docker daemon using dockerd command

jhony@ljunix~$ sudo dockerd &

Verify your installation:

    Check your installation by running the below docker command

jhony@ljunix~$ sudo docker run hello-world
[sudo] password for jhony:
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
1b930d010525: Pull complete
Digest: sha256:2557e3c07ed1e38f26e389462d03ed943586f744621577a99efb77324b0fe535
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/

For more examples and ideas, visit:
https://docs.docker.com/get-started/

Now you are good to go with docker on Ubuntu-17.04 server.

Note: If you get a warning message regarding execution path install the aufs tools,

jhony@ljunix~$ sudo apt-get install aufs-tools

Feel free to ask if you have any questions.

Comments

  1. Be the first to add a comment.