Skip to content

Instantly share code, notes, and snippets.

View fortinux's full-sized avatar
🎯
Focusing

Fortinux fortinux

🎯
Focusing
View GitHub Profile
@fortinux
fortinux / terraform_docker_error.md
Created January 28, 2023 10:40
How to resolve Error: Error pinging Docker server: Cannot connect to the Docker daemon at unix:///var/run/docker.sock

How to resolve Error

Error pinging Docker server: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

  • My setup: Ubuntu 22.04, Terraform, Docker Desktop

When you try to follow the first tutorial at Terraform and do terraform apply you get the message above. It tooks me a couple of hours to discover that Docker Desktop in Ubuntu 22.04 don't use unix:///var/run/docker.sock as DOCKER ENDPOINT but unix:///home/user/.docker/desktop/docker.sock so the solution that works is this:

  • Check your DOCKER ENDPOINT opening a terminal and typing:

docker context ls

@fortinux
fortinux / shellscript-presentacion.ipynb
Last active July 17, 2021 14:17
Shell scripts Presentación
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.