In this article, I am going to show you how to fix this Dicker issue – “Unable to locate package docker-engine”.
The docker package included in Ubuntu is referred to as docker.io
. To install it, simply execute the following command:
sudo apt-get install docker.io
Alternatively, if you follow this link to install the Docker engine on Ubuntu and follow steps 7, 8, and 9, your installation will be aware of the package in the Docker repository and will also locate the Docker engine.
The choice is up to you. In my case, I use the Ubuntu version (currently 0.11.2 on Ubuntu 16.04) on some machines, and the Docker version on others (to explore some 0.12 features). Both options work seamlessly.
Docker is utilized as a desktop launcher application for ‘docking’ icons.
So what we have learned?
The Docker-compose-plugin has been added to the docker.io repository. To obtain the necessary files, you can run either sudo apt install docker.io
or apt-get
in older versions of Ubuntu.
Before installing, it’s essential to run an update to ensure you have the latest versions. Execute the following command:
sudo apt update