-
Notifications
You must be signed in to change notification settings - Fork 620
Added DOCKER_DAEMON_ARGS environment variable support #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added DOCKER_DAEMON_ARGS environment variable support #12
Conversation
|
I'm not sure I understand the use case for this, can you elaborate? When I need daemon arguments on this image, I run it like |
|
Sure. My usecase is Gitlab CI where I want to build, test and deploy the Gitlab CI is able to run the defined jobs on docker containers (via I think the additional |
|
This sounds like a failing of the docker runner in the I would probably work around it by just using the On a side note, I would probably not use the docker runner for See also, https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/ |
I agree on your point. Unfortunately it is a far more hard thing to request and get this feature on gitlab-ci-multi-runner than these 2 lines of code to support the environment variable. (But I will create an issue on gitlab-ci-multi-runner to target this)
The
I am aware of the security concerns. The gitlab instance is private and the runner/machine restricted to an project/team.
I don't like passing the host docker daemon socket inside the container, because this volume needs to be defined on the .gitlab-ci.yml inside the project. So the code/projects builds up dependencies to its CI system (also a non generic approach when the absolute location of the socket changes on different systems). The environment variable can be injected via the gitlab-ci-multi-runner. (See docs, For others with the same needs, I created a patched See: https://hub.docker.com/r/jack12816/docker/ It just uses |
This image is really awesome! But it lacks the support for an environment variable based docker daemon configuration. It would be really helpful to support both approaches, the entrypoint arguments and an additional
DOCKER_DAEMON_ARGSvariable.This comes in very handy for a CI build, when an user can't change the way how a dependent service is started, except of passing environment variables.
Moreover it's documented that way on dind itself.