Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Make official, no copy/paste of dind script #22

Closed
jbeda opened this issue Jun 14, 2014 · 14 comments
Closed

Make official, no copy/paste of dind script #22

jbeda opened this issue Jun 14, 2014 · 14 comments

Comments

@jbeda
Copy link

jbeda commented Jun 14, 2014

I'd like to use dind to support what I think might be a common flow:

  1. Build some linux binaries
  2. Build some docker images that include those binaries

I'd like to support development from the Mac with boot2docker. I'm stuck with either copying binaries in and out of the boot2docker VM or do dind. The fact that dind isn't an officially supported part of Docker and the script is copy/pasted/diverged from the hack/dind script in the Docker repo gives me pause.

So -- "feature request": Move this script to a canonical official place and make the Docker build process take a dependency on it. Then others can follow that pattern with confidence.

@jpetazzo
Copy link
Owner

I would love to do that. I'll see if I can make that happen this week. If after a week, you don't hear back, consider that I failed to malloc() an acceptable timeslice, and feel free to point directly to the script in the Docker repo :-)

@jbeda
Copy link
Author

jbeda commented Jun 16, 2014

Thanks! That'd be great. No hurry on my end, though.

For now, I think that we are going to copy the binaries out of our "build container" and then upload them again as part of the context for building the "run" container. It is expedient and I'm going on vacation next week :)

@j1n6
Copy link

j1n6 commented Mar 25, 2015

+1

@jpetazzo
Copy link
Owner

jpetazzo commented Apr 7, 2015

Aaaand I failed to allocate memory^W time slice. I'll try again soon but if someone has a better idea, I'd be happy to hear it!

@jpetazzo
Copy link
Owner

OK, I officially won't be able to take care of this. I wonder what should be the best approach. I think that Docker upstream prefers to vendor dependencies, so even if this were the official source, it would be vendored in the Docker repo somehow. I don't know what to do so I'll ask for @tianon's advice because they're wise.

@tianon
Copy link
Contributor

tianon commented Jun 19, 2015

@jpetazzo to be honest, this repo was so sporadically maintained that I've personally considered hack/dind inside the Docker repo to be the official "source of truth" as it were for how to do Docker in Docker (and it's the script I download anywhere I need to do Docker-in-Docker -- https://github.com/tianon/dockerfiles/blob/38ba24b92a7c5581e6a1cc51176c7e8ad1bcee92/dind/Dockerfile#L9-L10, although pinning that on an explicit Docker version and dind commit would be a very prudent idea)

@tianon
Copy link
Contributor

tianon commented Jun 19, 2015

(with no offense meant, obviously -- homies4lyfe ❤️)

@thaJeztah
Copy link

@tianon that's not really user-friendly, is it? Would splitting it out to, e.g., docker/dind be an option (and deprecating/redirecting this repo)?

The current status is confusing, i.e., what's the "best", "most up-to-date" dind?

@tianon
Copy link
Contributor

tianon commented Jun 19, 2015

If you want up-to-date bash-completion for Docker, it's in docker/docker/contrib/completion/bash. If you want up-to-date Vim syntax highlighting for Docker, it's in docker/docker/contrib/syntax/vim.

In this case, what we're discussing is even simpler than those examples because it's a single script, so you can actually download just that one script without cloning the entire repo, so it seems pretty reasonable IMO that the canonical place for doing Docker-in-Docker lives in the Docker repository itself.

What I would like to do is make a more official "Docker-in-Docker" image, and have been discussing creating such a thing with several of the other Docker developers. 👍

@jpetazzo
Copy link
Owner

+1!

What should I make with this one? I'm fine with marking it with a big
"DEPRECATED" flag and redirecting to the dind script in the Docker repo if
that helps.

On Fri, Jun 19, 2015 at 2:34 PM, Tianon Gravi notifications@github.com
wrote:

If you want up-to-date bash-completion for Docker, it's in
docker/docker/contrib/completion/bash. If you want up-to-date Vim syntax
highlighting for Docker, it's in docker/docker/contrib/syntax/vim.

In this case, what we're discussing is even simpler than those examples
because it's a single script, so you can actually download just that one
script without cloning the entire repo, so it seems pretty reasonable IMO
that the canonical place for doing Docker-in-Docker lives in the Docker
repository itself.

What I would like to do is make a more official "Docker-in-Docker" image,
and have been discussing creating such a thing with several of the other
Docker developers. [image: 👍]


Reply to this email directly or view it on GitHub
#22 (comment).

@jpetazzo https://twitter.com/jpetazzo
"Is it safe to run applications into containers?"
http://www.slideshare.net/jpetazzo/docker-linux-containers-lxc-and-security

@lox
Copy link

lox commented Jul 27, 2015

Is there any possibility of making this repo just a thin wrapper around https://raw.githubusercontent.com/docker/docker/master/hack/dind?

Ideally it would be a library/dind image, is that plausible?

@jpetazzo
Copy link
Owner

jpetazzo commented Sep 3, 2015

I totally agree with those ideas; is there documentation upstream explaining how to do dind? That would be the only missing step: merging/moving documentation upstream as well, and then replacing this repo with a link to the official upstream.

@thaJeztah
Copy link

According to moby/moby#15596, using dind is no longer required for docker 1.8 and above? So it may be just a matter of deprecating it altogether?

@jpetazzo
Copy link
Owner

Yes, totes! Updated README accordingly. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants