Help please: kubectl + doctl strictly confined

It sounds like doctl simply needs to be a little smarter either about how it is calculating its name, perhaps by looking for if SNAP is set in the environment and using ‘doctl’. Another option would be to have bin/doctl-launch exec (in the bash sense) a thing called doctl rather than doctl.real.