Questions tagged [docker-daemon]

114 questions
71
votes
17 answers

Why am I getting a "Cannot connect to the Docker daemon" error in WSL2?

Here is my setup: Windows 10 PRO - build 19041.153 - insider program - slow ring Ubuntu 18.04LTS subsystem in WSL2 mode Docker for desktop 2.2.0.4 - enabled WSL2 integration with my Ubuntu subsystem I am currently forced to use Windows for…
27
votes
12 answers

docker.socket: Failed with result 'service-start-limit-hit' after protecting docker daemon socket

I followed the steps provided in the documentation here to add tls security for docker api. Certificates are located in ~/.docker/ as well as /etc/docker/ssl/ folders. I added override.conf to /etc/systemd/system/docker.service.d/ with…
PaxPrz
  • 1,778
  • 1
  • 13
  • 29
14
votes
2 answers

How to expose Docker TCP socket on WSL2? (WSL-installed Docker, not Docker Desktop)

I want to connect to Docker TCP socket running in WSL2 via PyCharm. I can't seem to expose the socket, I think possibly because there's limited control of docker-daemon within WSL2 (systemctl)? I can't use Docker Desktop because I need GPU support…
lefnire
  • 2,524
  • 2
  • 26
  • 36
7
votes
1 answer

Fix "Docker daemon failed to start" error after (Mac) OS upgrade

After getting numerous messages saying I should upgrade my OS, I have finally decided to upgrade to macOS Big Sur v11.6.1. Unfortunately, docker doesn't work anymore. I'm getting an error: Fatal Error Docker daemon failed to…
Andy B.
  • 181
  • 2
  • 9
7
votes
1 answer

What process is the parent process of containerd-shim?

I setup 2 k8s environments with minikube. One with the --container-runtime=docker flag and one with --container-runtime=containerd flag. Here are the differences I see. When I set container-runtime=docker , these things happen there is a dockerd…
Hari Sundararajan
  • 608
  • 2
  • 8
  • 18
6
votes
3 answers

modify docker daemon configuration in Rancher Desktop VM

Is there a way to modify docker daemon configuration in Rancher Desktop VM, e.g. adding insecure registries, etc...? After such modification, I'd like to restart docker daemon for changes to apply. Is there a way to connect to Rancher Desktop…
rok
  • 9,403
  • 17
  • 70
  • 126
6
votes
2 answers

Failed to start docker-daemon: Firewalld: docker zone already exists

I have the following after running firewall-cmd --get-active-zones public interfaces: virbr0 docker0 lxcbr0 wlan0 trusted sources: 172.17.0.0/16 53.0.0.0/8 These are insights I got from failed to start daemon: Error initializing network…
Ilonpilaaja
  • 1,169
  • 2
  • 15
  • 26
6
votes
3 answers

Does build context size affect the image size?

When I build images with docker build the output contains the context size, e.g.: Sending build context to Docker daemon 1.315GB [...] Successfully built a9ec4d33e12e Does this size affect the resulting image size? Should I seek to reduce it?
planetp
  • 14,248
  • 20
  • 86
  • 160
6
votes
1 answer

Docker remote daemon (TCP): Cannot connect to the Docker daemon

I'm trying to connect a docker daemon from a client to a remote host via TCP but I'm getting this error: docker -H tcp://{{HOST_IP}}:2375 ps Cannot connect to the Docker daemon. Is 'docker daemon' running on this host? What could be possible…
danieljacky
  • 167
  • 1
  • 2
  • 9
5
votes
1 answer

Building a Docker Image with the Spring Boot Gradle Plugin and Colima

I'm trying to create a docker image of a Spring Boot application using the Gradle plugin. I'm using Spring Boot 2.6.4 and Gradle 7.1.1. I'm on a Mac, and I don't have Docker Desktop installed. Indeed, I run docker using Colima. The problem is that I…
riccardo.cardin
  • 7,971
  • 5
  • 57
  • 106
5
votes
0 answers

Is it possible to use environment variables inside docker daemon configuration file

background: We are using registry_mirrors & insecure_registries options in docker daemon.json file. We would like to stop setting the location of the mirrors hard-coded. Question Is it possible to use env variable inside daemon.json? So instead of…
oak
  • 2,898
  • 2
  • 32
  • 65
5
votes
1 answer

Enabling live restore on docker isn't keeping the containers alive

I read the Enable Live Restore, but when I tried it. ubuntu@ip-10-0-0-230:~$ cat /etc/docker/daemon.json { "live-restore": true } I started an nginx container in detached mode. sudo docker run -d …
Ashwani
  • 1,340
  • 1
  • 16
  • 34
4
votes
4 answers

Docker Daemon not running on windows 11

I am a beginner into Docker stuff, I am on windows 11 and whenever I try to open docker desktop it doesn't open. Always this error message shows up, also whenever I try to run docker ps or docker images or anything related to docker it always shows…
killerdroid99
  • 73
  • 3
  • 11
4
votes
1 answer

What is purpose of the switch --containerd in command dockerd?

If I run systemctl cat docker.service to check the unit file of docker.service, ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock can be found in the default unit file of docker. My question is what is the purpose of…
krave
  • 1,629
  • 4
  • 17
  • 36
4
votes
2 answers

Preparation failed: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock

Trying to transform a project in gitlab to docker image. The gitlab is selfhosted. This is the error I get: Running with gitlab-runner 13.12.0 (7a6612da) on test -KnwQXuT Preparing the "docker" executor ERROR: Failed to remove network for…
SerCio
  • 105
  • 3
  • 8
1
2 3 4 5 6 7 8