Skip to content
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

Disable docker-in-docker (dind) by default #2338

Closed
shaneparsons opened this issue Oct 25, 2019 · 11 comments
Closed

Disable docker-in-docker (dind) by default #2338

shaneparsons opened this issue Oct 25, 2019 · 11 comments
Labels

Comments

@shaneparsons
Copy link

Info:

  • Docker version ($ docker --version): 19.03.4, build 9013bf5
  • Laradock commit ($ git rev-parse HEAD): 04c6aaf3389ebd30e2874788b90437f229effb0b
  • System info (Mac, PC, Linux): Mac
  • System info disto/version: Catalina

Question:

What's the purpose of docker-in-docker?

I'm trying to "minimize" my docker-compose.yml (removing everything I don't need) and I noticed that workspace and php-fpm both rely on this docker-in-docker... What does it do, and can I remove the environment and links references to it?

@lanphan
Copy link
Contributor

lanphan commented Oct 25, 2019

docker-in-docker helps you to be able to run docker command in docker container. In case you don't need it, you can remove that.

@shaneparsons
Copy link
Author

shaneparsons commented Oct 25, 2019

Ah okay... It doesn't sound like something I need, but can you perhaps give me an example of how / why somebody might use this? It doesn't appear to be documented anywhere.

@cwilby
Copy link

cwilby commented Oct 26, 2019

#1655

@shaneparsons
Copy link
Author

shaneparsons commented Oct 28, 2019

Echoing cwilby's comment in the referenced pull request, I also think this should be turned off by default with the option to turn it on in the rare case that somebody needs it... Somebody new to Docker / Laradock, like me, will just assume that this is needed and leave it enabled.

I'll leave this issue open for the above reason.

@shaneparsons shaneparsons changed the title What's the purpose of docker-in-docker? Disable docker-in-docker (dind) by default Oct 28, 2019
@lanphan
Copy link
Contributor

lanphan commented Oct 31, 2019

@shaneparsons @vlauciani after reviewing, I see that using links from workspace / php-fpm to docker-in-docker (dind) makes dind become mandatory service in Laradock.
As we agree that dind should be an optional service, therefore, I'd like to remove that link. For those who want to have dind, just start it explicitly, for ex:

docker-compose up workspace php-fpm docker-in-docker

Let I test locally, then have PR for this soon.

@shaneparsons
Copy link
Author

shaneparsons commented Oct 31, 2019

@lanphan For what it's worth, I tried it locally a few days ago with all links to dind removed and everything seemed to work fine. Here's the docker-compose I was using if it helps... Note: a lot of the other default containers have also been removed for other reasons.

@stale
Copy link

stale bot commented Feb 7, 2020

Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions ❤️.

@stale stale bot added the Stale label Feb 7, 2020
@stale
Copy link

stale bot commented Feb 28, 2020

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Feb 28, 2020
@Yiidiir
Copy link
Contributor

Yiidiir commented Jun 17, 2020

@lanphan did u merge a solution to this?

@attozk
Copy link

attozk commented Jun 2, 2022

+1

1 similar comment
@tasosmitsi
Copy link

+1

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

No branches or pull requests

6 participants