-
Notifications
You must be signed in to change notification settings - Fork 90
Description
I'm new to Docker, so forgive my ignorance, but I'm struggling to understand what these directions are telling me to do:
https://github.com/whisklabs/docker-it-scala#configuration
According to this #7 you simply need to set that environment variable for DOCKER_HOST
and all unit tests should then run just fine, but on a fresh install of Docker for Lubuntu 16.04, it isn't immediately obvious what that value should be set to and the value specified in the readme didn't seem to work for me (i.e. unit tests were failing to connect to postgres).
Digging into this issue further, I eventually got the postgres scalaTests for this repo passing by first configuring systemd as follows:
I created a file: /etc/systemd/system/docker.service.d/docker.conf
in that file I put (in order to match the host specified in the readme):
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock
I then ran:
systemctl daemon-reload
systemctl restart docker
I then exported the DOCKER_HOST
to the docker daemon (dockerd) url I just configured:
DOCKER_HOST=tcp://127.0.0.1:2375
Now unit tests passed.
It was frustrating that I couldn't find a lot of official Docker documentation backing up my decisions. Is it common to have to configure the daemon host like I did? Should the readme for docker-it-scala maybe clarify some of the docker setup (maybe call it "prerequisites")?