Context
In my .devcontainer
that, I run in GitHub Codespaces, I’ve installed minikube
. Shortly after minikube start
I get this message
Executing "docker container inspect minikube took an unusually long time: 10.566089734s*
Restarting the docker service may improve performance.
- I’m using docker
docker-in-docker
feature. - The
.devcontainer
environment starts docker with dockerd cli. systemctl
is not present container running my environment
Question
I’d like to restart docker to improve performance. Is it possible to restart docker without stopping the docked
process? Something like sudo systemctl restart docker
but with dockerd
?
2
Answers
After careful studding of dockerd cli, I concluded that there is no other option of restarting the docekrd process than just killing it and starting it manually again.
To restart
dockerd
, restart thedocker
service itself. For example,sudo systemctl restart docker
in ubuntu.