Reputation: 248
I am new to Linux and using Parrot Os (Home Edition). I am trying to install Docker on the same. But have been unable to do so.
This is for running MySQL and I also think that it will be useful to me later. I tried installing docker using APT package manager as follows:
sudo apt-get install docker
The installation completes but after that it when i try to start the service, it says
Failed to start docker.service: Unit docker.service not found.
Since I am an newbie, please give detailed answer or place links so that i can read it myself? Thanks.
Upvotes: 1
Views: 24569
Reputation: 11
never use apt-get on parrot. parrot uses apt. i used apt-get the first time i used parrot and ended up having to completley reinstall parrot.
$sudo apt install docker.io
this works i just installed it and tried it
Upvotes: 1
Reputation: 11
first fix all broken packages in your apt repo using sudo apt --fix-broken install
then sudo apt update
then run sudo apt install docker.io
Upvotes: 1
Reputation:
┌─[root@parrot]─[/home/harry]
└──╼ #sudo apt install docker.io
This command will install docker instead of "apt install docker-ce".
Upvotes: 1
Reputation: 598
You can easily install docker with the following command.
┌─[user@parrot-virtual]─[~/Desktop]
└──╼ $sudo apt install docker.io
After successful installation..
┌─[user@parrot-virtual]─[~/Desktop]
└──╼ $docker
Usage: docker [OPTIONS] COMMAND
A self-sufficient runtime for containers
Upvotes: 12
Reputation: 81
Check your debian version number then cross reference that to their names (i.e wheezy, etc.).
then go to docker ce downloads navigate to
linux -> debian -> dists -> (your debian version name)
and download the version you want
Now, install it with
sudo dpkg -i {your path to the download .deb file}
PS:
sudo apt-get install docker
doesn't install docker for me anymore. It install wmdocker which seems to be different.
Additional info
here is the result of my uname -a
Linux parrot 5.4.0-4parrot1-amd64 #1 SMP Parrot 5.4.19-4parrot1 (2020-02-27) x86_64 GNU/Linux
You can test if it works with
sudo docker run hello-world
Upvotes: 1
Reputation: 12268
Just confirm the docker installation after sudo apt-get install docker
is successful.
From the error, it seems docker.service
file is not created after installation.
Try to create the docker.service
file manually. Refer this.
You probably need to create /etc/systemd/system/docker.socket
file with these contents. And /etc/systemd/system/docker.service
file with these contents.
Hope this helps.
Upvotes: 2