Hello everyone.
I’m trying to install docker (for the first time) into a proxmox LXC container and I am having trouble getting it going. The OS I’m using is Linux Ubuntu Server v22.04.
I did my best following the installation guide from the following link: (https) docs (dot) docker (dot) com/engine/install/ubuntu/
The problem I’m having is that when I try to run docker using the command
sudo service docker start
I get the following error:
A dependency job for docker (dot) service failed. See ‘journalctl -xe’ for details.
Here is what I receive after typing the journalctl -xe command:
– A start job for unit docker (dot) socket has begun execution.
– The job identifier is 233.
Jun 14 18:47:20 KubernetesUbuntu systemd[331]: docker (dot) socket: Failed to resolve group docker: No such process
Jun 14 18:47:20 KubernetesUbuntu systemd[1]: docker (dot) socket: Control process exited, code=exited, status=216/GROUP
– Subject: Unit process exited
– Defined-By: systemd
– Support: (http) www (dot) ubuntu (dot) com/support
– An ExecStartChown= process belonging to unit docker (dot) socket has exited.
– The process’ exit code is ‘exited’ and its exit status is 216.
Jun 14 18:47:20 KubernetesUbuntu systemd[1]: docker (dot) socket: Failed with result ‘exit-code’.
– Subject: Unit failed
– Defined-By: systemd
– Support: (http) www (dot) ubuntu (dot) com/support
– The unit docker.socket has entered the ‘failed’ state with result ‘exit-code’.
Jun 14 18:47:20 KubernetesUbuntu systemd[1]: Failed to listen on Docker Socket for the API.
– Subject: A start job for unit docker.socket has failed
– Defined-By: systemd
– Support: (http) www (dot) ubuntu (dot) com/support
– A start job for unit docker (dot) socket has finished with a failure.
– The job identifier is 233 and the job result is failed.
Jun 14 18:47:20 KubernetesUbuntu systemd[1]: Dependency failed for Docker Application Container Engine.
– Subject: A start job for unit docker.service has failed
– Defined-By: systemd
– Support: (http) www (dot) ubuntu (dot) com/support
– A start job for unit docker.service has finished with a failure.
– The job identifier is 179 and the job result is dependency.
Jun 14 18:47:20 KubernetesUbuntu sudo[322]: pam_unix(sudo:session): session closed for user root
Jun 14 18:47:20 KubernetesUbuntu systemd[1]: docker.service: Job docker.service/start failed with result ‘dependency’.
lines 5474-5510/5510 (END)
Note that I edited the output to remove periods and http from it because it’s not letting me post a topic with more than 2 links in it.
To try solving this problem, I spent some time searching around on the internet (including here) to no avail. It seems that people are having similar problems from different reasons and the error message is too vague to be helpful (at least to me). I also tried checking the dependencies to make sure everything was there by running apt show {each of the 5 specific docker packages} and manually looked through all of the installed packages (using apt list --installed) to make sure each dependency was installed with at least the appropriate version and each one is installed.
So how should I go about getting past this?
The only two things I can think of at this time are:
- When I first tried installing docker, I followed the apt repository route. I got through the apt-get update part. I got through the get docker’s official GPG key part. However, when setting up the repository and trying to install docker from it, it had an issue finding the appropriate ip address and didn’t work/install. Note that I did this a week or so ago (before I started trying to figure this out myself) so I don’t know which actual step it happened on nor do I have a copy of the output from it. I eventually installed docker using the deb packages so do you think the steps from the apt depository might have messed it up? Maybe there’s some conflict somewhere between what was installed during the apt repository attempt and what was installed during the install from packages attempt? If so, how would I go about figuring out / undoing whatever section of the apt-repository install is causing the issue?
- The only other thing I can think of that might be causing the issue would be that maybe I have too new of a version of one of the 5 docker packages and I need to roll back one. I did this by using the wget command to download each of the 5 docker packages (i.e., containerd.io, docker-ce, docker-ce-cli, docker-buildx-plugin, and docker-compose-plugin) from the /pool/stable/ section and then installed each of them, one-at-a-time, using the dpkg command. Do you think that maybe I need to roll one of these back to an older version to get it to work?
What do you think? How should I go about fixing this? Thanks in advance for your time/replies.