Difference between revisions of "/var/run/docker.sock"

From wikieduonline
Jump to navigation Jump to search
 
Line 24: Line 24:
 
== Related terms ==
 
== Related terms ==
 
* <code>[[docker ps]]</code>
 
* <code>[[docker ps]]</code>
* <code>[[Docker context ls‎‎]]</code>
+
* <code>[[docker context ls‎‎]]</code>
 
* [[Cannot connect to the Docker daemon]]
 
* [[Cannot connect to the Docker daemon]]
 
* <code>[[/var/run/crio/crio.sock]]</code>
 
* <code>[[/var/run/crio/crio.sock]]</code>
 
* [[Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?]]
 
* [[Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?]]
 
* <code>[[unix:///var/run/docker.sock]]</code>
 
* <code>[[unix:///var/run/docker.sock]]</code>
 +
curl --unix-socket /var/run/docker.sock http://localhost/version
  
 
== See also ==
 
== See also ==

Latest revision as of 11:29, 22 October 2024

 /var/run/


docker ps
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get 
http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/json: dial 
unix /var/run/docker.sock: connect: permission denied

Solution: sudo docker ps


minikube start
😄  minikube v1.25.2 on Darwin 12.5.1 (arm64)
✨  Using the docker driver based on existing profile

💣  Exiting due to PROVIDER_DOCKER_VERSION_EXIT_1: "docker version --format -" exit status 1: Got permission denied while trying to connect to the Docker daemon socket at 
unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/version": dial unix /var/run/docker.sock: connect: permission denied
📘  Documentation: https://minikube.sigs.k8s.io/docs/drivers/docker/


 version: '3'
services:
  redis:
    image: redis
  datadog:
    build: datadog
    pid: host
    environment:
     - DD_API_KEY=${DD_API_KEY}
     - DD_SITE=datadoghq.com
    volumes:
     - /var/run/docker.sock:/var/run/docker.sock
     - /proc/:/host/proc/:ro
     - /sys/fs/cgroup:/host/sys/fs/cgroup:ro

Related terms[edit]

curl --unix-socket /var/run/docker.sock http://localhost/version

See also[edit]

Advertising: