In this article we are going to learn the commands and steps to install docker.io package on Ubuntu 16.10.
Ads
Quick installation of docker.io:
Step 1: Update system:
sudo apt-get update
Step 2: Install: docker.io
Ater updaing the OS run following command to install the packae:
sudo apt-get install docker.io
Package Details | |
| Package: | docker.io |
| Version: | 1.12.1-0ubuntu12 |
| Maintainer: | Ubuntu Developers |
| Home page: | https://dockerproject.org |
| Description: | Linux container runtime Docker complements kernel namespacing with a high-level API which operates at the process level. It runs unix processes with strong guarantees of isolation and repeatability across servers. . Docker is a great building block for automating distributed systems: large-scale web deployments, database clusters, continuous deployment systems, private PaaS, service-oriented architectures, etc. . This package contains the daemon and client. Using docker.io on non-amd64 hosts is not supported at this time. Please be careful when using it on anything besides amd64. . Also, note that kernel version 3.8 or above is required for proper operation of the daemon process, and that any lower versions may have subtle and/or glaring issues. |
| Distro: | Ubuntu 16.10 |
| Release: | |
| Repo/Section: | universe/admin |

First of all update your system with the command:
sudo apt-get update
Ads
Above command will download the package lists for Ubuntu 16.10 on your system. This will update the list of newest versions of packages and its dependencies on your system.
After downloading the latest package list with the help of above you can run the installation process.
If docker.io is not installed on your compter then the command 'dpkg -L docker.io' will give followin error.
deepak@deepak-VirtualBox:~$ dpkg -L docker.io dpkg-query: package 'docker.io' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. deepak@deepak-VirtualBox:~$
Installing docker.io:
After system update use the following command to install docker.io:
sudo apt-get install docker.io
Above command will confirm before installing the package on your Ubuntu 16.10 Operating System. If you are not already logged in as su, installer will ask you the root password. After completion of the installation you can use the package on your system.
Now we will see the commands for uninstalling the docker.io from Ubuntu 16.10. For uninstalling this package you can easily use the apt command and remove the package from Linux Operating System.
To remove the docker.io following command is used:
sudo apt-get remove docker.io
Following command is used to remove the docker.io package along with its dependencies:
sudo apt-get remove --auto-remove docker.io
This will remove docker.io and all its dependent packages which is no longer needed in the system.
Completely removing docker.io with all configuration files:
Following command should be used with care as it deletes all the configuration files and data:
sudo apt-get purge docker.io
or you can use following command also:
sudo apt-get purge --auto-remove docker.io
Above command will remove all the configuration files and data associated with docker.io package. You can can't recover the delete data, so, use this command with care.