Closed mewmew closed 7 years ago
Adding the following two steps before make docker_pull
might solve the issue:
boot2docker up
and
eval "$(boot2docker shellinit)
I don't have boot2docker
on my system (using Arch Linux). However, starting the Docker daemon (i.e. sudo systemctl start docker
) was enough to resolve this issue.
The only other issue is that since the Makefiles invoke docker
directly without using sudo
, the user would have to be added to the docker group (which may not be desirable in all cases, see the Docker daemon attack surface article).
A potential solution to this issue is to create an alias for docker
as described in this article.
alias docker="sudo /usr/bin/docker"
Note that the installation instructions for Arch Linux solved all of these issues except the one regarding the docker
group.
I'd suggest adding a note regarding docker security to the installation instructions, and perhaps suggest that adding an alias for docker as described above is one possible solution.
From https://github.com/commonsearch/cosr-front/pull/28#issuecomment-196429886
This pull request was sent out prematurely. It turns out that aliases are ignored by make, or rather only used by interactive terminal environments. In either case, the described solution does not fix the initial problem.
If anyone has an alternative solution to mitigate the security implications of adding your user to the docker
group, please let us know.
The suggested docker
alias (see pull request #27) turned out not to work in combination with make
.
Close the issue for now as it has remained inactive for more than 6 months.
Anyone with further insight into the current status of this issue, may re-open it or add comments of the current progress.
When following the step-by-step installation instructions, the
make docker_pull
step fails, since the Docker daemon has not yet been started.To make it easier for first-time users of Docker to jump straight in, add an additional step prior to the
make docker_pull
step, which describes how to start the Docker daemon.The error reported if the Docker is not yet started is as follows.