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

Can't start pyrex in LXC container #75

Open
ajlennon opened this issue Jan 30, 2022 · 1 comment
Open

Can't start pyrex in LXC container #75

ajlennon opened this issue Jan 30, 2022 · 1 comment

Comments

@ajlennon
Copy link

Hi,

I'm trying to get pyrex going as a GitHub action runner on a cloud box I run. This cloud box runs proxmox and I have a number of LXC containers running on it.

I've installed docker to be able to run inside the LXC container and this works for me e.g. docker run hello-world works.

I followed the instructions for running pyrex and I get this error. I wonder if this is because I have had to change the way docker runs within the LXC container to use aufs

image

All thoughts appreciated as I've love to be able to use this for builds!

@JoshuaWatt
Copy link
Collaborator

Pyrex heavily relies on bind mounting filesystems into the container to make it efficient and "seamless". Because of this, it can be particularly tricky to run Pyrex inside another container. Success will depend of if you are running DinD or DooD. I've had some success doing it with DooD, which basically means you're still doing checkouts and stuff in the container host, then passing the correct paths to Pyrex (which, may not match the paths in LXC!), but I don't really recommend it. DinD is probably quite difficult or impossible to accomplish. It does beg the question: if you have a LXC container, why do you need Pyrex? It seems like you could modify your LXC image to include all the things you need instead.

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

No branches or pull requests

2 participants