1 min read

Playing Around with Docker, Elixir and PostgreSQL

Playing Around with Docker, Elixir and PostgreSQL

I decided to give those technologies a go, since I worked mostly on front end and mobile dev, I thought it would be interesting to learn a bit of the backend.

First problems occurred because I work on a Windows machine, using WSL 2 to use Ubuntu.

So I had to install elixir on my ubuntu wsl environemnt.

Docker was a hard one to crack, I kept getting

“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/containers/json”: dial unix /var/run/docker.sock: connect: permission denied”

To solve it some dude posted that I should do:

sudo chmod 666 /var/run/docker.sock

chmod 666 would be:

Userread and write
Groupread and write
Othersread and write

Seems to have worked.

The elixir api will be a graph ql one.

The goal is to map out gym like feature such as trainings, exercises, users, etc.

First I started learning how to set up an elixir project, and set up an endpoint to call functions on.

To be continued.


Fuck me the company blocked my access to other coding lessons.

Onwards towards node.js then.