Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] docker not working with open-rc (Read 361 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] docker not working with open-rc

Dear artixers,

I just installed
Code: [Select]
docker
following some previous posts in this forum which mentioned I should also install
Code: [Select]
docker-openrc
. Unfortunately I have not been able to get docker working. When I tried to run
Code: [Select]
sudo dockerd
I got the following error:
Code: [Select]
INFO[2023-10-02T14:58:59.349386102+09:00] Starting up                                  
WARN[2023-10-02T14:58:59.520607735+09:00] Usage of loopback devices is strongly discour
aged for production use. Please use `--storage-opt dm.thinpooldev` or use `man dockerd`
 to refer to dm.thinpooldev section.  storage-driver=devicemapper                     
INFO[2023-10-02T14:58:59.934598031+09:00] Creating filesystem xfs on device docker-259:
2-5506111-base, mkfs args: [/dev/mapper/docker-259:2-5506111-base]  storage-driver=devi
cemapper                                                                              
INFO[2023-10-02T14:59:00.035431663+09:00] Successfully created filesystem xfs on device
 docker-259:2-5506111-base  storage-driver=devicemapper                               
ERRO[2023-10-02T14:59:00.084780679+09:00] [graphdriver] prior storage driver devicemapp
er is deprecated and will be removed in a future release; update the the daemon configu
ration and explicitly choose this storage driver to continue using it; visit https://do
cs.docker.com/go/storage-driver/ for more information                            
failed to start daemon: error initializing graphdriver: prior storage driver devicemapp
er is deprecated and will be removed in a future release; update the the daemon configu
ration and explicitly choose this storage driver to continue using it; visit https://do
cs.docker.com/go/storage-driver/ for more information

I understand the problem could be with
Code: [Select]
storage-driver=devicemapper
but I don't know how change this option when running dockerd.

Thanks in advance for your attention

Re: docker not working with open-rc

Reply #1
I was able to get it working with
Code: [Select]
dockerd --storage-device=devicemapper
.

Re: [SOLVED] docker not working with open-rc

Reply #2
Why not using the docker service instead of calling the binary?

 

Re: [SOLVED] docker not working with open-rc

Reply #3
Thanks for the reply.

Sorry, but could you give me more info.

After installing the docker and docker-openrc packages I've added docker to the services with
Code: [Select]
rc-update add docker
but it always crashes. If I try to restart with
Code: [Select]
rc-service docker restart
I still get it crashed.