Open Sudhishna opened 5 years ago
@Mierdin Hi Matt,
while trying to implement this lesson, we are facing an issue. Error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
In order to run docker commands from within ubuntu container, we have to be sharing that sock, as shown below: docker run -v /var/run/docker.sock:/var/run/docker.sock -ti ubuntu bash
This has to run from host docker level. Will you be able to help us with this?
if there is another way for us to run docker commands from ubuntu container, please let us know.
@Sudhishna Apologies for the delayed response here. We briefly discussed offline but to summarize for everyone else:
Sharing the docker socket within the container isn't something we want to do in this platform. It just opens up too many rabbit holes. However, we can still create an image capable of running Docker by running a small virtual machine via QEMU, similar to how we are doing it with the vQFX images.
This is a little more heavy-handed than a simple container, but necessary for use cases like this when the use case goes beyond simple user space applications.
I'd be happy to work on this image, especially since I know of other lessons that might want to leverage the safety of a VM, and I want to make sure the image is created in a sensible, extensible way. I'll update this issue when finished, and you can take it from there - using the new image instead of utility
as I'm assuming you're using above.
@Mierdin Thank you. Let us know once this is available. We will take it from there.
@Sudhishna Okay with #142 merged, I've tested the new utility-vm
image, and it has docker installed. Let me know if you need anything else for this lesson, and thank you!
will check this out and let you know Matt.
@Sudhishna Hey just wondering if you've had a chance to look at the new image and make any progress on this? Let me know if there's anything I can do to help.
Hi, Me and @vinayak-skywalker are planning to do a lesson in docker. Please let us know if we can proceed with this.