Skip to content

Can't get docker on PopOS #17

@ShadowMitia

Description

@ShadowMitia

Hello,

On PopOS this deploy doesn't work, because using lsb_release gives the value "pop" which is not available in the list of distributions on the docker website.

Ideally OsRelease should be used to get the ID_LIKE values and test them one by one? For pop os it has the value "ubuntu debian", which would make it work. This seems like a reliable way of checking according to: https://www.freedesktop.org/software/systemd/man/latest/os-release.html.

This would make it a bit easier to use on derived distributions, even if official support isn't there. With the current list of tested distributions, I hope it means a wider range of distributions out-of-the-box.


I took a quick look at it, but couldn't really wrap my head around how to solve this. Is there a way to iterate an operation over different values until one works? Or a way to run several operations and keep only the first one that succeeds? Very new to pyinfra, I'm not even sure it's something that is good practice to do 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions