Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I don't get it. Could you explain how that relates to it being a recursion and how docker (afaik one runs a docker container that has just the required environment and the virtualization of the software) relates to virtualization of machines?
-
cho-uc18865y@-ANGRY-STUDENT-
I tried to create ubuntu container inside an ubuntu container.
So far I still get an error, but if it works, then it will be pretty cool. Just like movie "Inception" : dream within dream, within dream, within dream...
😎 -
It's not quite recursion but a funny idea. 😄
I feel the same when opening remote desktops within remote desktops. -
@cho-uc 🤦♀️
how did you manage that? did you mount the docker socket into the containers from the host? or full install of docker inside a running container? -
cho-uc18865y@magicMirror @asgs
Full install docker inside a running container.
But I got "Cannot connect to the Docker daemon."
Then something about :
unix:///var/run/docker.sock
So maybe it's not possible...too bad... -
endor56705y@cho-uc is the docker daemon running? Are you executing your docker commands as root (with sudo) or does your user belong to the 'docker' group?
-
You need root in the container to host the docker daemon. Most people won't have attempted it because running containers as root is highly discouraged in any production scenario.
You could try to bodge wire the internal daemon to the external sock with a volume mount, but, yeah, root. -
-
@SortOfTested docker containers run as Root by default.
Prod containers should NOT do that. -
Unless there is the host windows machine twice in that list I only see nesting rather than recursion. sorry..
-
cho-uc18865y@endor Yeah, already tried to fix those.
See below screenshot.. Weird right?
@magicMirror I know it's probably useless, but I'm curious
@Yggdrasil OMG, it's possible! Thanks so much for the link. 😘
Now I can try the recursive Docker! 😎
Related Rants
from Windows host->run Ubuntu container A
-> from Ubuntu container A, run Ubuntu container B
-> from Ubuntu container B, run Ubuntu container C
-> from Ubuntu container C, run Ubuntu container D
-> ....
Recursion-mode ON
rant
docker