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

some images are made with the concept of docker in docker #215

Open
khaledyoussef24 opened this issue Feb 8, 2024 · 1 comment
Open

Comments

@khaledyoussef24
Copy link
Contributor

Description

some images are made with the concept of docker in docker is this the best practice so we can follow or it can be enhanced to avoid any problems building a container inside a micro vm

https://github.com/threefoldtech/tf-images/tree/development/tfgrid3/taiga
https://github.com/threefoldtech/tf-images/tree/development/tfgrid3/mastodon
https://github.com/threefoldtech/tf-images/tree/development/tfgrid3/owncloud

@scottyeager
Copy link
Contributor

Micro VMs are not Docker based, so it's really just Docker running inside a VM when such images are ultimately deployed. Docker and containerd do bring some overhead but it's minimal. I don't think that building images this way is a large concern from that perspective.

The main thing to be aware of when running Docker inside a micro VM is that the root filesystem is a virtio filesystem and thus Docker will fall back to it's vfs storage driver. Overall this lead to very bad performance. Instead, the Docker data root should go on a volume. Actually this is true of our new style full VM images too, since they don't use a volume for the rootfs.

@xmonader xmonader modified the milestone: 3.15.x Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants