LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-15-2022, 06:05 PM   #1
evening shadow
LQ Newbie
 
Registered: Oct 2022
Posts: 3

Rep: Reputation: 0
Can't start the docker daemon (dockerd) in slackware 15


Hi

When I try to start the docker service by running
Code:
sudo /etc/rc.d/rc.docker start
for some reason it won't work, it will just say "starting dockerd..." when it should say "starting dockerd... Done" instead, and it will give no error message, then when I try to run "docker run" with any image afterwards, it says it can't locate the apropriate socket and tells me to check if the daemon is running, which it isn't

I tried both with the slackbuild from slackbuilds.org and with the binary from alien's repo, and the result is the same

Any ideas of what might be happening?
 
Old 10-16-2022, 04:05 AM   #2
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 594

Rep: Reputation: Disabled
Looking at https://slackbuilds.org/slackbuilds/...nfig/rc.docker or http://www.slackware.com/~alien/slac...nfig/rc.docker (same content I think) I don't see where the "Done" should come from.
Have you tried running "/etc/rc.d/rc.docker status" or "docker ps -a" ?
 
Old 10-20-2022, 02:06 PM   #3
lawnm0wer
Member
 
Registered: Nov 2017
Posts: 87

Rep: Reputation: Disabled
I am having a problem similar to this too.

No matter what I do, the docker daemon just completely refuses to start, and the worst part is, I have no idea why it's doing it or why it refuses to tell me anything else as to why it doesn't want to start.

Code:
bash-5.1$ su
Password: 
bash-5.1# chmod +x /etc/rc.d/rc.docker
bash-5.1# exit
exit
bash-5.1$ sudo /etc/rc.d/rc.docker start
Password: 
Starting dockerd ...
bash-5.1$ /etc/rc.d/rc.docker status
Status of dockerd: stopped
bash-5.1$ docker ps -a
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
bash-5.1$ sudo /etc/rc.d/rc.docker restart
Stopping dockerd ... done
Starting dockerd ...
bash-5.1$ /etc/rc.d/rc.docker status
Status of dockerd: stopped
bash-5.1$ docker ps -a
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
bash-5.1$
This is a fresh install of docker from Alien's repo.
I am on slackware 15.0

Docker just completely refuses to start no matter what I do.
How do I figure out just why docker just refuses to start?

EDIT: Forget this post please. I was a derp and didn't notice in alien's blogpost that docker has dependencies

Last edited by lawnm0wer; 10-20-2022 at 02:26 PM.
 
Old 05-13-2024, 02:06 AM   #4
shipujin
Member
 
Registered: May 2022
Location: China
Distribution: slackwareloong
Posts: 110
Blog Entries: 1

Rep: Reputation: 29
Quote:
Originally Posted by lawnm0wer View Post
I am having a problem similar to this too.

No matter what I do, the docker daemon just completely refuses to start, and the worst part is, I have no idea why it's doing it or why it refuses to tell me anything else as to why it doesn't want to start.

Code:
bash-5.1$ su
Password: 
bash-5.1# chmod +x /etc/rc.d/rc.docker
bash-5.1# exit
exit
bash-5.1$ sudo /etc/rc.d/rc.docker start
Password: 
Starting dockerd ...
bash-5.1$ /etc/rc.d/rc.docker status
Status of dockerd: stopped
bash-5.1$ docker ps -a
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
bash-5.1$ sudo /etc/rc.d/rc.docker restart
Stopping dockerd ... done
Starting dockerd ...
bash-5.1$ /etc/rc.d/rc.docker status
Status of dockerd: stopped
bash-5.1$ docker ps -a
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
bash-5.1$
This is a fresh install of docker from Alien's repo.
I am on slackware 15.0

Docker just completely refuses to start no matter what I do.
How do I figure out just why docker just refuses to start?

EDIT: Forget this post please. I was a derp and didn't notice in alien's blogpost that docker has dependencies

Hi,
Did you solve that problem? I had the same problem

Best regards
---
SlackwareCN: The Slackware Linux CN Community
slackwareCN:https://github.com/slackwarecn
slackwareCN:http://www.slackwarecn.cn
slackwareloong doc :https://github.com/slackwarecn/slackbook_cn_loongarch64
slackwareloong web doc : https://slackwarecn.gitbook.io/slackbook_cn_loongarch64
 
Old 05-13-2024, 05:33 AM   #5
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,647

Rep: Reputation: 148Reputation: 148
I think he means that he looked at the slack-required file in http://www.slackware.com/~alien/slac.../docker/build/ and build the depencies first.
 
1 members found this post helpful.
Old 05-13-2024, 05:39 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,998

Rep: Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338
this is an old thread, you ought to open a new one, even if your case looks similar. Did you check those dependencies already? Did you check the logs of that docker daemon?
 
Old 05-13-2024, 06:24 AM   #7
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 682
Blog Entries: 1

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Some simple things make life easier.

1) install slpkg
2) enable alien repo in /etc/repositories.toml (15 or current)
3) slpkg -u (update slpkg)

Finaly slpkg -i docker -o alien
Or slpkg -ir docker -o alien (if you want to reinstall all)
Everything will be installed in correct order.

Last edited by rizitis; 05-13-2024 at 06:26 AM.
 
1 members found this post helpful.
Old 05-14-2024, 04:41 AM   #8
shipujin
Member
 
Registered: May 2022
Location: China
Distribution: slackwareloong
Posts: 110
Blog Entries: 1

Rep: Reputation: 29
Thanks everyone, I have successfully run docker in slackwareloong, thank you

Code:
root@slackwareloong:~# 
root@slackwareloong:~# docker --version
Docker version 25.0.5, build 
root@slackwareloong:~# /etc/rc.d/rc.docker status
Status of dockerd: running
root@slackwareloong:~# docker ps -a
CONTAINER ID   IMAGE          COMMAND       CREATED          STATUS         PORTS     NAMES
c5b824a5d890   a9b447c5031f   "/bin/bash"   50 minutes ago   Up 2 minutes             ecstatic_elgamal
root@slackwareloong:~# uname -a
Linux slackwareloong.slackwarecn 6.8.2 #1 SMP PREEMPT_DYNAMIC Fri Mar 29 14:46:36 CST 2024 loongarch64 GNU/Linux
root@slackwareloong:~#
Best regards
---
SlackwareCN: The Slackware Linux CN Community
slackwareCN:https://github.com/slackwarecn
slackwareCN:http://www.slackwarecn.cn
slackwareloong doc :https://github.com/slackwarecn/slackbook_cn_loongarch64
slackwareloong web doc : https://slackwarecn.gitbook.io/slackbook_cn_loongarch64

Last edited by shipujin; 05-14-2024 at 06:32 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Difference between docker.io, docker-cd, and Docker Desktop LXer Syndicated Linux News 0 08-15-2022 05:39 PM
[SOLVED] Docker on -Current error: "Is docker daemon running?" Tsuga Slackware 6 01-05-2022 11:11 AM
LXer: Docker Founder Explains What Docker is all About LXer Syndicated Linux News 0 08-21-2014 09:20 PM
Bash script to verify the daemon is working if not, start the daemon kishoreru Linux - Newbie 7 09-23-2009 04:29 AM
Enable daemon to run with service daemon start,etc baddah Programming 6 12-02-2007 05:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration