I'm implementing this simple vagga container example as part of their tutorial. When I try to run vagga py3
I get:
ERROR:vagga::wrapper: Error executing _build: Number of allowed subuids is too small. Required [Range { start: 0, end: 65536 }], allowed [Range { start: 0, end: 1 }, Range { start: 260000, end: 270000 }]. You either need to increase allowed numbers in /etc/subuid (preferred) or decrease needed ranges in vagga.yaml
I have never touched or even heard about subuids. I'm not sure why the example is not working out of the box. I also get a similar error for gids.
I have updated my vagga.yaml
:
uids: [0-1]
gids: [0-1]
This actually works, but according to the error message this is not the preferred method. My user entry in /etc/subuid
is:
ajcrites:260000:10000
Is there something that I need to do or can do to ensure that my vagga.yaml
works out of the box on most systems including mine?