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

Improve Dockerfile installation to recommend installing systemd-detect-virt #320

Open
betelgeuse opened this issue Jan 24, 2025 · 1 comment

Comments

@betelgeuse
Copy link

Please describe the question or issue you're facing with "How to enable Ubuntu Pro Services in a Dockerfile - Ubuntu on OCI registries documentation".

https://github.com/canonical/ubuntu-pro-client/blob/0571604c4ba715342890104703b8435972446061/uaclient/system.py#L247

The pro client relies on systemd-virt-detect as the primary virtualization detection tool. The fallback is looking for magic strings. It would be useful for the Dockerfile use case to document that installing systemd temporarily can help with the detection. It would be even better to improve the client to be able to call it like:

pro attach --assert-virt docker <token>

This would fail if the detection does not match docker. The command could then be dropped in the Dockerfile and give appropriate error message if detection fails to find docker.


Reported from: https://documentation.ubuntu.com/oci-registries/en/latest/oci-how-to/enable-pro-services/

@rpocase
Copy link
Contributor

rpocase commented Jan 24, 2025

i'm not sure if the public cloud docs are the right spot for this. @alnvdl-work @orndorffgrant do you know of any work around this on the pro docs side?

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